cmd/go: workspace problems #52271
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Version: go1.18
Repro in latest release
macOS 12.3.1 M1 Max
In order to reduce imports in a large package, I used a workspace with embedded go.mod. This no work with go workspace sync
github.com/haraldrudell/parl
┠ go.work: use ./mains, use .
┠ go.mod: next to no dependencies
┠ mains
└ go.mod: requires the internet
Problem 1: “go work sync” for importer no work
Note: import-parl is a project that runs something from every package. It’s got a similar module set-up, too, for its importsProblem 2: no version tags on pkg.go.dev
Although mains package is in the same repository with the same git tags,
mains doesn’t get a version or version history:
https://pkg.go.dev/github.com/haraldrudell/parl/mains
— Version: v0.0.0-20220411030804-48d01f316f70
https://pkg.go.dev/github.com/haraldrudell/parl
— Version: v0.4.3
Problem 3: go get -u
go get -u doesn’t seem to like life either. You have to specify the specific versions
go get github.com/haraldrudell/parl/mains@v0.4.4
What did you expect to see?
What did you see instead?
status code 1: error
Version: v0.0.0-20220411030804-48d01f316f70
Note: I am a target of HoffmanMoritzPincus. Anything with my name on it may be quickly hidden, discredited or closed
The text was updated successfully, but these errors were encountered: