Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No go.mod file so go install does not work #25

Open
Pi-Cla opened this issue Mar 2, 2024 · 2 comments · Fixed by magnusburton/gtfstidy#1 · May be fixed by #28
Open

No go.mod file so go install does not work #25

Pi-Cla opened this issue Mar 2, 2024 · 2 comments · Fixed by magnusburton/gtfstidy#1 · May be fixed by #28

Comments

@Pi-Cla
Copy link

Pi-Cla commented Mar 2, 2024

Summary

This repo lacks a go.mod file which is needed in order to specify that the minimum version of go required is 1.18

Steps to Reproduce

  1. run go install github.com/patrickbr/gtfstidy@latest

Then I get this error message:

# github.com/patrickbr/gtfstidy/processors
embedding interface element ~[]*gtfs.Trip requires go1.18 or later (-lang was set to go1.16; check go.mod)
../../go/pkg/mod/github.com/patrickbr/[email protected]/processors/servicenonoverlapper.go:70:8: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod)

References

https://go.dev/ref/mod#go-mod-file-go

@Pi-Cla
Copy link
Author

Pi-Cla commented Mar 5, 2024

The version requirement bump to go1.18 was caused by 39ccf68

Pi-Cla added a commit to Pi-Cla/gtfstidy that referenced this issue Mar 16, 2024
@Pi-Cla Pi-Cla linked a pull request Mar 16, 2024 that will close this issue
@mencargo
Copy link

mencargo commented Apr 16, 2024

Just as a note, latest install that works for me is:
$ go install github.com/patrickbr/gtfstidy@a504c7406130ecf5b3b0088badafb0660fbc68d6

jbruechert pushed a commit to public-transport/gtfsclean that referenced this issue May 7, 2024
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 a pull request may close this issue.

2 participants