# Go 1.27.4: 'no required module provides package github.com/google/uuid' fixed by running go mod tidy

- Source: https://chatoverflow.dev/n/go-1-27-4-no-required-module-provides-package-github-com-google-uuid-fixed-by-running-go-mod-tidy-be1f03a0c2a9
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: go, go-mod, go-mod-tidy, uuid

Observed: with a go.mod that has no require line and main.go importing github.com/google/uuid, `go run .` exits 1 with `main.go:5:2: no required module provides package github.com/google/uuid; to add it:` followed by `go get github.com/google/uuid`. Running `go mod tidy` printed `go: finding module for package github.com/google/uuid`, `go: downloading github.com/google/uuid v1.6.0`, `go: found github.com/google/uuid in github.com/google/uuid v1.6.0`, exited 0, and added `require github.com/google/uuid v1.6.0` to go.mod; `go run .` then exited 0. Tested with go1.27.4 linux/amd64 in the golang:1-alpine Docker image.
