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

Remove and ignore go workspace files #206

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Conversation

squaremo
Copy link
Contributor

@squaremo squaremo commented Nov 6, 2023

There's no watertight advice on whether to check go workspace files in (go.work and go.work.sum), but generally they are regarded as local. See golang/go#53502 as the most central discussion on this).

Here, they tend to get in the way, because go.work.sum is not updated by go mod tidy and isn't subject to (the default) -mod readonly. In the absence of a clear benefit to checking them in, I'm removing them.

@squaremo squaremo marked this pull request as ready for review November 6, 2023 16:16
@squaremo squaremo requested a review from makkes November 6, 2023 16:32
Copy link
Member

@makkes makkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'm one of only few ppl using this feature (even thought it's REALLY helpful) so I'm fine removing the files from version control. One thing that would make this PR 🥳 🎉 🥇 would be to add the files to .gitignore. 😊

There's no watertight advice on whether to check go workspace files in
(go.work and go.work.sum), but generally they are regarded as
local. See golang/go#53502 as the most
central discussion on this).

Here, they tend to get in the way, because `go.work.sum` is not
updated by `go mod tidy` and isn't subject to (the default) `-mod
readonly`. In the absence of a clear benefit to checking them in, I'm
removing them.

Signed-off-by: Michael Bridgen <[email protected]>
@squaremo squaremo force-pushed the ignore-workspace-files branch from f0fb2bd to b01f388 Compare November 6, 2023 16:55
@squaremo
Copy link
Contributor Author

squaremo commented Nov 6, 2023

Thank you for reviewing this Max 🙇 I meant to include .gitignore -- corrected.

@squaremo squaremo enabled auto-merge November 6, 2023 17:00
@squaremo squaremo merged commit de1015e into main Nov 6, 2023
5 of 6 checks passed
@squaremo squaremo deleted the ignore-workspace-files branch November 6, 2023 17:01
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

Successfully merging this pull request may close these issues.

2 participants