Skip to content

Commit

Permalink
Fetch tags before trying to check them out (#114)
Browse files Browse the repository at this point in the history
`build.cake` fails if you have a Cody repo cloned, but have not fetched
the stable release tag. This is because `GitFetch` does not fetch tags.
Use `GitFetchTags` instead.

# Test plan

Delete the current Cody commit tag, and run `dotnet cake`.

```
cd ../cody-dist
git tags -d vscode-v1.34.3
cd ../src
dotnet cake
```
  • Loading branch information
dominiccooney authored Oct 2, 2024
1 parent 57697d1 commit d9430bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Task("BuildCodyAgent")
GitCheckout(codyDir, branchName);

Information($"--> Fetching all tags...");
GitFetch(codyDir, "origin");
GitFetchTags(codyDir, "origin");

Information($"--> Checkout latest stable release using tag {codyStableReleaseTag} ...");
GitCheckout(codyDir, codyStableReleaseTag);
Expand Down

0 comments on commit d9430bb

Please sign in to comment.