Skip to content

Commit

Permalink
build: prevent go from linking libresolv dynamically.
Browse files Browse the repository at this point in the history
This is default (https://pkg.go.dev/[email protected]#hdr-Name_Resolution).
It creates an indirect dependency on a fresh version of glibc.
As a result, it prevents our binaries from running on not-so-fesh docker
images.
  • Loading branch information
jiceatscion committed Sep 19, 2023
1 parent 783896e commit b06908c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build --incompatible_default_to_explicit_init_py

# include one of "--define gotags=sqlite_mattn" or "--define gotags=sqlite_modernc"
# cannot be in common, because query chokes on it.
build --define gotags=sqlite_modernc
build --define gotags=sqlite_modernc,no_libresolv

### options for test
test --build_tests_only --print_relative_test_log_paths --test_output=errors
Expand Down

0 comments on commit b06908c

Please sign in to comment.