Skip to content

Commit

Permalink
Remove netgo tag to fix Windows hosts file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
szh committed Apr 18, 2023
1 parent 8d2f3ae commit c6fb44a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ builds:
# Tag 'netgo' is a Go build tag that ensures a pure Go networking stack
# in the resulting binary instead of using the default host's stack to
# ensure a fully static artifact that has no dependencies.
# However, netgo on Windows has a bug that prevents it from using the
# machine's hosts file for DNS resolution. Therefore this tag must be
# omitted on Windows until the bug is fixed. See
# https://github.com/golang/go/issues/57757 and internal ticket
# CNJR-904 for more information.
flags:
- -tags=netgo
- -tags={{ if ne .Os "windows" }}netgo{{ end }}
- -a
goos:
- linux
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [8.0.7] - 2023-04-17

### Fixed

- Fixed not using hosts file on Windows
[cyberark/conjur-cli-go#121](https://github.com/cyberark/conjur-cli-go/pull/121)

## [8.0.6] - 2023-04-17

### Fixed
Expand Down

0 comments on commit c6fb44a

Please sign in to comment.