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

x/playground: commands fail when a multi-file playground program uses workspace mode #54741

Closed
bcmills opened this issue Aug 29, 2022 · 4 comments
Labels
modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Aug 29, 2022

What did you do?

https://go.dev/play/p/gJxLs807WTz

What did you expect to see?

Go commands executed in workspace mode.
(In this case, I was trying to reproduce #54680.)

What did you see instead?

go: -mod may only be set to readonly when in workspace mode, but it is set to "mod"
	Remove the -mod flag to use the default readonly value,
	or set GOWORK=off to disable workspace mode.

Go build failed.
@gopherbot gopherbot added this to the Unreleased milestone Aug 29, 2022
@bcmills bcmills changed the title x/playground: x/playground: commands fail when a multi-file playground program uses workspace mode Aug 29, 2022
@bcmills
Copy link
Contributor Author

bcmills commented Aug 29, 2022

(attn @toothrot per https://dev.golang.org/owners)

@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. modules labels Aug 29, 2022
@nikola-jokic
Copy link
Contributor

Can I take this one?

@gopherbot
Copy link

Change https://go.dev/cl/458895 mentions this issue: x/playground: remove -mod=mod and execute go mod tidy before command

@bcmills
Copy link
Contributor Author

bcmills commented Jan 30, 2023

@toothrot, the Gerrit login for your golang.org account seems to no longer be working. Do you plan to continue reviewing https://go.dev/cl/458895, or should I complete the review or reassign it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants