Repository navigation
feat: publish weaveffi to the shared Homebrew tap - #63
Merged
Merged
Conversation
release-binaries.yml now adds a SHA256SUMS asset and a Homebrew formula, rendered by scripts/render-formula.py from packaging/homebrew/weaveffi.rb.in, once every archive is attached, and pushes Formula/weaveffi.rb to weavefoundry/homebrew-tap with the HOMEBREW_TAP_TOKEN organization secret. Closes #62
Rust 1.100 warns on an unused ExitCode, no longer gives a binary's unit tests CARGO_BIN_EXE_weaveffi (so the completions test moves to the CLI integration tests), and points the not-Sync diagnostic at the field.
swift-actions/setup-swift doesn't support Ubuntu 26.04, which ubuntu-latest now is.
Cargo 1.100 builds each feature set into its own build/{package}/{hash}/out
directory and has no deps/ directory, so the library path fell back to the
uplifted copy that a concurrent build with other features replaces. Find
the build's own file instead, while holding a lock that keeps another
weaveffi command from replacing the uplifted copy first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
release-binaries.ymlgets ahomebrewjob that runs once every archive is attached. It downloads the published archives, uploads aSHA256SUMSasset, rendersweaveffi.rband attaches it to the release, then pushesFormula/weaveffi.rbto weavefoundry/homebrew-tap withHOMEBREW_TAP_TOKEN. The push writes only that file and retries aftergit pull --rebase, the same way WeaveC's does.workflow_dispatchrerun for an older tag can't downgrade the formula. If the token is missing, the job warns and skips the push.packaging/homebrew/weaveffi.rb.in+scripts/render-formula.py(based on WeaveC's):on_macos/on_linux×on_arm/on_intelurl/sha256blocks,bin.install "weaveffi", the Bash/Zsh/fish completions viagenerate_completions_from_executable, and atest dothat checksweaveffi --versionagainst the formula version. There's noversionline becausebrew audit --strictflags it as redundant with the URL.brew install weavefoundry/tap/weaveffiin the README and Getting Started, a note in the completions guide that Homebrew installs them, and the release flow in CONTRIBUTING.Closes #62
Test plan
brew installandbrew testpass, and the bash/zsh/fish completions land in the Homebrew prefix (then uninstalled and untapped)brew audit --strict --onlineandbrew styleare cleanscripts/check-links.shpassesNotes for reviewers
HOMEBREW_TAP_TOKENis already visible to this repository.weaveffilives in the other repository, so it's a separate PR there.url/sha256values.gh workflow run release-binaries.yml -f tag=v0.26.0. This also rebuilds and re-uploads that release's archives with--clobber.CI repairs (unrelated to Homebrew)
Main's CI breaks on the current runners, so this PR also carries three small fixes, each in its own commit:
ExitCodethey used to drop. The completions/schema --versiontest moves from the binary's unit tests totests/cli/schema.rs, because Cargo no longer gives a binary's own unit testsCARGO_BIN_EXE_weaveffi.fail_interface_not_sync.stderrpicks up rustc's new note pointing at the field.fix(cli)commit): Cargo now builds each feature set into its ownbuild/<package>/<hash>/out/and has nodeps/, soCargoCrate::lib_artifactsfell back to the shared uplifted copy, which a concurrent build with other features replaces. That's whyextract::feature_flags_reach_the_library_buildfailed on Linux. It now finds the build's own file by matching contents, while holding a new{target_dir}/weaveffi/build.lockso anotherweavefficommand can't replace the uplifted copy first.rustix1.1.5 → 1.1.6.ubuntu-latestis now 26.04, whichsetup-swiftdoesn't support yet, so Swift's Linux conformance lane runs onubuntu-24.04.