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

cmd/chrome: go mod tidy #936

Closed
wants to merge 1 commit into from

Conversation

myitcv
Copy link
Contributor

@myitcv myitcv commented Feb 26, 2024

Run go mod tidy on cmd/chroma using go1.22.0

Also add a couple of steps to CI to run as part of CI, and enforce that the module be tidy by ensuring the git working directory is not dirty at the end of a workflow.

We use this approach in all of the CUE project workflows:

https://github.com/cue-lang/cue/blob/5b4a5819b55593357486cba3c7fc0d0a1853f031/.github/workflows/trybot.yml#L202-L203

Run go mod tidy on cmd/chroma using go1.22.0

Also add a couple of steps to CI to run as part of CI, and enforce that
the module be tidy by ensuring the git working directory is not dirty at
the end of a workflow.

We use this approach in all of the CUE project workflows:

https://github.com/cue-lang/cue/blob/5b4a5819b55593357486cba3c7fc0d0a1853f031/.github/workflows/trybot.yml#L202-L203
@myitcv
Copy link
Contributor Author

myitcv commented Feb 26, 2024

In an earlier commit of this PR I intentionally left out the changes to cmd/chroma/go.{mod,sum} to show that the build breaks when we need it to:

https://github.com/alecthomas/chroma/actions/runs/8052585442/job/21993047886

@alecthomas
Copy link
Owner

I appreciate the PR, but this is unnecessary on a project of this size. This just adds unnecessary friction. What I typically prefer if I want to enforce something similar is to automatically commit the changes.

As long as everything builds correctly, I'm fine with go.sum having some out of date entries.

@alecthomas alecthomas closed this Feb 26, 2024
@myitcv myitcv deleted the tidy_cmd_chroma branch February 26, 2024 21:14
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.

None yet

2 participants