Add go.mod file#7
Open
mojotx wants to merge 1 commit into
Open
Conversation
This adds a go.mod file, to better support managing dependencies in Go with modules. All of the cool kids started doing this with the preliminary support in Go v1.11 and v1.12, and it became the default with Go 1.13, released in September 2019. If you clone the repository and try to run the benchmark with the latest Go 1.17 compiler, you get an error: ``` $ go test -v -bench=. go: cannot find main module, but found .git/config in ~/src/github.com/mojotx/pcg to create a module there, run: go mod init ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a go.mod file for better support managing dependencies in Go with modules. All of the cool kids started doing this with the preliminary support in Go v1.11 and v1.12, and it became the default with Go 1.13, released in September 2019. The latest Go version now, in late November 2021, is Go 1.17.
I mention the dates and versions because the project hasn't had any activity since 2018, before the module support was added.
Anyway, If you clone the repository and try to run the benchmark with the latest Go 1.17 compiler, you get an error: