We last made a vendor zip and added that to the lrease but it seems this isn't part of…
- User
We last made a vendor zip and added that to the lrease but it seems this isn't part of the release artficats as stated in https://github.com/JanDeDobbeleer/oh-my-posh/issues/7668#issuecomment-4968903322
Assistant
Found it — confirmed against the actual run logs, not just the issue text.
Root cause
In .github/workflows/release.yml, the
artifactsjob does, in order:- "Package Go module dependencies" (release.yml:73-79) — writes
oh-my-posh-<version>-deps.tar.xzintosrc/dist/. - "Run GoReleaser" (release.yml:80-86) — runs
goreleaser release --clean --skip publish.
--cleantells GoReleaser to wipe the dist directory before building (log line: , right after the tarball was created). That erases the deps tarball before GoReleaser writes its own outputs, so the step at the end only ever sees GoReleaser's files.- "Package Go module dependencies" (release.yml:73-79) — writes
- User
yes
Assistant
Fixed and committed as 21da6a6e.
What was wrong: the "Package Go module dependencies" step wrote the
*-deps.tar.xzintosrc/dist/before GoReleaser ran. GoReleaser's--cleanflag wipes that directory before building, so the tarball was deleted beforeupload-artifactever ran — confirmed in the last run's log ("13 files uploaded", none of them the deps tarball).Fix: moved the packaging step to after "Run GoReleaser 🚀" and before "Post Build 🤐", so it writes into the freshly-populated dist directory and also picks up a
.sha256sidecar likethemes.zipdoes.This won't take effect until the next release run, so worth watching that the asset shows up then. Note: I didn't touch
post.ps1's sha256-hash loop — while investigating I noticed the current release has no.sha256files at all, suggesting that step may already be a no-op for an unrelated reason, but that's outside this issue's scope.