-
Notifications
You must be signed in to change notification settings - Fork 652
[Feature] - V6 Refactoring #2262
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
Comments
Was there any talk about potential refactoring for the command line parsing? It's all hand made at the moment and I must admit I struggled more with figuring out how to incorporate a new switch/arg than how to incorporate a new feature. There are 3 main flaws with it imo
I'd suggest something like https://github.com/commandlineparser/commandline which I've used in the past, but the gist of it is that it supports explicit command definitions (as opposed to chaining more if-statements), property binding, validation, free helptext, you name it. |
We're currently considering System.Commandline |
FWIW, I've used |
One thing we should do for v6 is to make the I'm not sure how we can provide a smart Something to cook our noodles. |
@asbjornu at the moment we build only Linux images, we dropped the support for Windows as the images are too big and too long to build. |
@arturcic, okay. That's good news! A clever |
Does that include the nano image? |
We don't build for nano at the moment , there were some issues with it |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
Not sure if it has been considered, today it's required to setup-dotnet to have the runtime GitVersion needs, correct? Wouldn't it make sense to either shipping a self-contained version of GitVersion.exe or having the runner install whatever dependencies it needs to be usable (if not already installed), instead of relying on the consumer to do it?
And I did not find it documented in the readme.md or elsewhere that it has this dependency. Maybe make that part a bit clearer, if not possible to do it self-contained? |
Our tar.gz files, the GitVersion.Cmdline and Portable are self contained. Still for Linux with tar.gz you need to install the dependencies needed to run .net (you can find them on Microsoft docs for each distro) |
If it's indeed self-contained, why does the error tell me to install a specific runtime? Not sure I fully get it. I thought self-contained meant it had the relevant runtime deps bundled in the exe/along with the exe. |
Ah, the GitHub Action uses the dotnet global tool under the hood. I missed that. If it used the self-contained exe instead, I wouldn't need require an additional setup-dotnet, I guess. |
Closing in favor of #2275 |
Refactoring to improve composability and allow extensibility
As discussed on slack channel gitversion 6 ideas channel:
gitversion.exe calculate
command with-normalize
switch to do git repo normalization logic before calculating.gitversion.exe calculate --normalize | gitversion buildserver
gitversion calculate
to obtain variable values - wheregitversion
will be invoked as a local or global dotnet tool.The text was updated successfully, but these errors were encountered: