Skip to content

Commit

Permalink
force use of os.LookupEnv when go1.5 (due to cacheing in go1.10) (k…
Browse files Browse the repository at this point in the history
…elseyhightower#108)

go1.10 caches env var accesses, but only when using `os.LookupEnv`
(`syscall.Getenv` does not record env var accesses so cache seems
reusable even if env vars have changed)

fixes kelseyhightower#107
  • Loading branch information
gedge authored and teepark committed Mar 8, 2018
1 parent 1f94cfa commit b2c5c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion env_os.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build appengine
// +build appengine go1.5

package envconfig

Expand Down
2 changes: 1 addition & 1 deletion env_syscall.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !appengine
// +build !appengine,!go1.5

package envconfig

Expand Down

0 comments on commit b2c5c87

Please sign in to comment.