Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .agents/skills/adding-a-migration-step/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ description: How to make fallout-migrate handle a new rename, removal, or rewrit
`fallout-migrate` runs a fixed, ordered list of `IMigrationStep` implementations,
built in `src/Fallout.Migrate/Migration.cs`. A **step is one operation over one
set of files**, and it owns the rewrite rules for those files.
`RewriteCsprojsStep` holds the rules for `*.csproj`; `RewriteCsFilesStep` holds
`RewriteCsprojsStep` holds the rules for `*.csproj` and `*.props`; `RewriteCsFilesStep` holds
the rules for `*.cs`.

## Adding a new rename, removal, or rewrite

1. Find the step for that file type — `RewriteCsprojsStep` for `*.csproj`,
1. Find the step for that file type — `RewriteCsprojsStep` for `*.csproj` and `*.props`,
`RewriteCsFilesStep` for `*.cs`, `RewriteBootstrapScriptsStep` for the
bootstrap scripts.
2. Add a `private static readonly Regex` field to that step, with a comment
Expand Down
2 changes: 1 addition & 1 deletion docs/Migration/from-nuke.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Done. Read on if anything looks unusual, or you want to know what the tool did.

## The recommended path: `fallout-migrate`

`fallout-migrate` is a global `dotnet` tool that performs the entire migration in one command. It rewrites `PackageReference`s, `using` directives, MSBuild properties, bootstrap scripts, env vars, and renames `.nuke/` → `.fallout/`. It's idempotent and has a `--dry-run` mode.
`fallout-migrate` is a global `dotnet` tool that performs the entire migration in one command. It rewrites `PackageReference`s and central package versions (`Directory.Packages.props`), `using` directives, MSBuild properties, bootstrap scripts, env vars, and renames `.nuke/` → `.fallout/`. It's idempotent and has a `--dry-run` mode.

### Step 1 — install the tool

Expand Down
2 changes: 1 addition & 1 deletion src/Fallout.Migrate/Common/MigrationFileOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void ApplyRewrite(
{
original = path.ReadAllText();
}
catch (IOException ex)
catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
{
summary.Warnings.Add($"could not read {RelativePath(context.RootDirectory, path)}: {ex.Message}");
return;
Expand Down
Loading
Loading