Skip to content

Add go.mod file#7

Open
mojotx wants to merge 1 commit into
MichaelTJones:masterfrom
mojotx:add_go_mod
Open

Add go.mod file#7
mojotx wants to merge 1 commit into
MichaelTJones:masterfrom
mojotx:add_go_mod

Conversation

@mojotx
Copy link
Copy Markdown

@mojotx mojotx commented Nov 30, 2021

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:

$ 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 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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant