Skip to content

Commit

Permalink
build: instructions regarding binfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 1, 2024
1 parent a5cccef commit 190ce19
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ If on the ARM tests you are seeing `standard_init_linux.go:211: exec user proces
sudo docker run --rm --privileged hypriot/qemu-register
```

### A note about Docker multi-arch builds

If you want to properly run the Docker tests, or run `goreleaser release
--snapshot` locally, you might need to setup Docker for it.
You can do so by running:

```sh
task docker:setup
```

## Test your change

You can create a branch for your changes and try to build from the source as you go:
Expand Down
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ tasks:
cmds:
- go mod tidy

docker:setup:
desc: Setup Docker for multi-arch image builds
cmds:
- docker run --privileged --rm tonistiigi/binfmt --install all

build:
desc: Build the binary
sources:
Expand Down

0 comments on commit 190ce19

Please sign in to comment.