Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish homebrew tap via GoReleaser #674

Closed
Tracked by #266
nderjung opened this issue Jul 25, 2023 · 0 comments · Fixed by #766
Closed
Tracked by #266

Publish homebrew tap via GoReleaser #674

nderjung opened this issue Jul 25, 2023 · 0 comments · Fixed by #766
Assignees
Labels
kind/enhancement New feature or request

Comments

@nderjung
Copy link
Member

nderjung commented Jul 25, 2023

Feature request summary

This issue tracks adding brew to the list of distributables from GoReleaser for KraftKit.

A new tap repository has been created at https://github.com/unikraft/homebrew-cli

Which will ultimately allow for KraftKit to be installed via:

brew install unikraft/cli/kraftkit

A new entry in GoReleaser's config needs to be added to the stable channel:

brews:
  - description: "Build and use highly customized and ultra-lightweight unikernels."
    name: kraftkit
    install: |
      bin.install "kraft"
    homepage: "https://kraftkit.sh"
    license: "BSD-3-Clause"
    skip_upload: auto
    tap:
      owner: unikraft
      name: homebrew-cli
      token: "{{ .Env.GITHUB_TOKEN }}"

More details can be found here: https://goreleaser.com/customization/homebrew/?h=tap

Additionally, though not in the code snippet above,bison and gsed for macOS are required. These need to be injected into the new configurable toolchain since they are installed at alternative (homebrew-specific) PATHs.

The following additional brew dependencies need to be part of the install:

brew install gnu-sed
brew install make
brew install m4
brew install gawk
brew install grep
brew install wget
brew install qemu
brew install socat
# ...for compiling x86_64 Unikernels
brew install x86_64-elf-binutils
brew install x86_64-elf-gcc
# ...for compiling aarch-64 Unikernels
brew install aarch64-elf-binutils
brew install aarch64-elf-gcc

Describe alternatives

No response

Related architectures

None

Related platforms

None

Additional context

Not sure if the environmental variable GITHUB_TOKEN will work.

GitHub-Depends-On: #675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
Status: 🚀 Done
Development

Successfully merging a pull request may close this issue.

1 participant