Skip to content

Vendor lefou::mill-vcs-version as part of mill-main (backport #4842) #4850

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

Open
wants to merge 4 commits into
base: 0.12.x
Choose a base branch
from

Conversation

lefou
Copy link
Member

@lefou lefou commented Apr 2, 2025

This PR vendors a copy of https://github.com/lefou/mill-vcs-version
inside the Mill repo.

mill-vcs-version is necessary for re-bootstrapping on top of main.
mill-mima or mill-scalafix are linters that can be disabled during
the re-bootstrapping process and turned on again later when the
third-party plugins are available, but mill-vcs-version is needing to
compute versions during the bootstrapping/dogfooding process and cannot
simply be skipped.

An alternative would be copy-pasting code into build.mill as a
temporary hack, but I think it's better to just vendor a full copy of
the upstream codebase. mill-vcs-version is a pretty small and stable
codebase, so the overhead of maintaining a vendored copy should be
manageable.

Original pull request: #4842

@lefou lefou changed the title Vendor lefou::mill-vcs-version as part of mill-main (#4842) Vendor lefou::mill-vcs-version as part of mill-main (backport #4842) Apr 2, 2025
lefou added 2 commits April 2, 2025 17:36
…-lihaoyi#4842)

This PR vendors a copy of https://github.com/lefou/mill-vcs-version
inside the Mill repo.

`mill-vcs-version` is necessary for re-bootstrapping on top of `main`.
`mill-mima` or `mill-scalafix` are linters that can be disabled during
the re-bootstrapping process and turned on again later when the
third-party plugins are available, but `mill-vcs-version` is needing to
compute versions during the bootstrapping/dogfooding process and cannot
simply be skipped.

An alternative would be copy-pasting code into `build.mill` as a
temporary hack, but I think it's better to just vendor a full copy of
the upstream codebase. `mill-vcs-version` is a pretty small and stable
codebase, so the overhead of maintaining a vendored copy should be
manageable.

Original pull request: com-lihaoyi#4842
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.

1 participant