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

Go build instructions don't work on first run #44

Open
tmcw opened this issue Aug 27, 2021 · 1 comment
Open

Go build instructions don't work on first run #44

tmcw opened this issue Aug 27, 2021 · 1 comment

Comments

@tmcw
Copy link
Contributor

tmcw commented Aug 27, 2021

On a fresh clone of this repo:

~/sf/plastics-2/api main
❯ go build .
go: github.com/ajg/[email protected]: missing go.sum entry; to add it:
	go mod download github.com/ajg/form

After running the requested command, you get

~/sf/plastics-2/api main*
❯ go build .
database/controller.go:6:2: missing go.sum entry for module providing package github.com/jackc/pgtype (imported by github.com/earthrise-media/plastics/api/database); to add:
	go get github.com/earthrise-media/plastics/api/database
database/controller.go:7:2: missing go.sum entry for module providing package github.com/jackc/pgx/v4 (imported by github.com/earthrise-media/plastics/api/database); to add:
	go get github.com/earthrise-media/plastics/api/database
main.go:7:2: missing go.sum entry for module providing package github.com/jackc/pgx/v4/log/zapadapter (imported by github.com/earthrise-media/plastics/api); to add:
	go get github.com/earthrise-media/plastics/api
database/controller.go:8:2: missing go.sum entry for module providing package github.com/jackc/pgx/v4/pgxpool (imported by github.com/earthrise-media/plastics/api); to add:
	go get github.com/earthrise-media/plastics/api

(and that continues for all of the other dependencies)

@tmcw
Copy link
Contributor Author

tmcw commented Aug 27, 2021

Running go mod tidy seems to do the trick, if you run it first.

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

No branches or pull requests

1 participant