1go build ./vendor/foo.com/internal/bar/a 2 3-- go.mod -- 4module example.com/x 5go 1.19 6 7require "foo.com/internal/bar" v1.0.0 8-- vendor/modules.txt -- 9# foo.com/internal/bar v1.0.0 10## explicit 11foo.com/internal/bar/a 12-- vendor/foo.com/internal/bar/a/a.go -- 13package a 14import _ "foo.com/internal/bar/b" 15-- vendor/foo.com/internal/bar/b/b.go -- 16package b