Skip to content

Commit

Permalink
Add go version to the mod file
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Sep 27, 2019
1 parent 583f79b commit c171232
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/spf13/viper

go 1.12

require (
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 // indirect
github.com/coreos/bbolt v1.3.2 // indirect
Expand Down

2 comments on commit c171232

@kenjones-cisco
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sagikazarmark What change specifically requires go 1.12?

@sagikazarmark
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing, but that's the first version where the go version was added to the mod file (as far as I know). If the go version is not present, the current version is used, so I chose the lowest possible version. I doubt it has any effect under go 1.12, so it should work either way.

Please sign in to comment.