79674a1d96
/bin/sh exists in NixOS and in fact is the only file in `/bin`: $ docker run -ti --rm nixos/nix ls /bin /usr/bin /bin: sh /usr/bin: env More context in https://lists.sr.ht/~motiejus/bazel-zig-cc/%3CCAFVMu-pvNx%2BpeQYdge_fvmSGrHDmn78VmoYwTxkDgMjbzfVAwQ%40mail.gmail.com%3E
10 lines
225 B
Bash
Executable File
10 lines
225 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
cd "$(git rev-parse --show-toplevel)/"
|
|
bazel run @go_sdk//:bin/go -- mod tidy
|
|
exec bazel run //:gazelle -- update-repos \
|
|
-from_file=go.mod \
|
|
-prune \
|
|
-to_macro=repositories.bzl%go_repositories
|