diff --git a/src/content/docs/graphql/guides/upgrade.mdx b/src/content/docs/graphql/guides/upgrade.mdx index 9688936..7655f96 100644 --- a/src/content/docs/graphql/guides/upgrade.mdx +++ b/src/content/docs/graphql/guides/upgrade.mdx @@ -43,13 +43,13 @@ Each option is a `dotnet new` option: | `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` | ## Upgrade @@ -61,7 +61,7 @@ The commands run from your solution's folder and put their work in an `upgrade` 1. Generate a copy of the release you started from: ```bash - dotnet new install CleanGraphQLApi.Template::2027.01.01.412 + dotnet new install CleanGraphQLApi.Template@2027.01.01.412 dotnet new cleangraphqlapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore ``` @@ -75,7 +75,7 @@ The commands run from your solution's folder and put their work in an `upgrade` 3. Diff the two copies into a patch: ```bash - (cd ../upgrade && git diff --no-index --binary old new > template.patch) + git -C ../upgrade diff --no-index --binary --output=template.patch old new ``` An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee. @@ -90,7 +90,7 @@ The commands run from your solution's folder and put their work in an `upgrade` Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it. - Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here. + Git says "Falling back to direct application" for files the template added or removed. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here. 5. Build, test and check the format, as CI would: @@ -104,9 +104,10 @@ The commands run from your solution's folder and put their work in an `upgrade` ```bash git commit -m "Upgrade to template release 2027.02.01.430" - rm -rf ../upgrade ``` + Then delete the `upgrade` folder. It's done its job. +