Replies: 3 comments 2 replies
-
I'd like to link a previous discussion about this topic: https://gitter.im/lihaoyi/mill?at=6229f4726b9124232029373a
|
Beta Was this translation helpful? Give feedback.
-
🤔 so I guess I'm sort of viewing
I don't think this would be a win. It still requires manual action from the user when they might simply just be getting started, set up their repo, and want to know the version. I think this behavior should just be defaulted without an env variable. |
Beta Was this translation helpful? Give feedback.
-
I created a new PR which implements support for missing version control systems. You can check for proper version control with |
Beta Was this translation helpful? Give feedback.
-
I hit on this every time I start a new project. When I set up a new project, for example using a template like https://github.com/ckipp01/mill-plugin.g8, it uses mill-vcs-version by default. When you start coding and want to test your plugin for the first time with
itest
it will fail with:Even if you do a
git init
it will still fail. The docs say:So I'd expect that if no tag is found or no git repository, this fallback would be used. However I see that this will fail before it even gets to that point. Would you be open to a change where that if
publishVersion
is called before a git repo is set up that it falls back to this? This is also the behavior that https://github.com/sbt/sbt-dynver uses, which a lot of users coming from sbt might be used to.Beta Was this translation helpful? Give feedback.
All reactions