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

Linux Installation Support #2895

Closed
DJViking opened this issue Nov 3, 2021 · 6 comments
Closed

Linux Installation Support #2895

DJViking opened this issue Nov 3, 2021 · 6 comments

Comments

@DJViking
Copy link

DJViking commented Nov 3, 2021

A Linux installation should be added,
https://gitversion.net/docs/usage/cli/installation

The only option for Linux is docker, which is not an option really. We have our own docker images we use on Jenkins.
Also we need to use the tool without docker on Linux computers for our developers.

It would be then usefull to have installation with an RPM.

@arturcic
Copy link
Member

arturcic commented Nov 3, 2021

Agree, we need to update the docs to include the Linux usage
Currently the option we have is to use the tar.gz artifacts from the release page. If you have the time and the wish, you could help us with a PR to update the documentation.

As for support of RPM (or any other linux package format). Unfortunately I do not have the knowledge how to create rpm/deb packages or the way delivery channels work. So if you could help with that, you are welcome, at least for now we do support only the tar.gz (we do test thetar.gz in different distros in docker)

@DJViking DJViking changed the title Linux Installation Support: RPM Linux Installation Support Nov 3, 2021
@DJViking
Copy link
Author

DJViking commented Nov 3, 2021

I could not find any instructions how to build this project on Linux.
I might take a look how to (if possible) for this package to produce an RPM for Linux.

@arturcic
Copy link
Member

arturcic commented Nov 3, 2021

I could not find any instructions how to build this project on Linux.

If you have dotnet sdk installed on linux, it's as simple as dotnet build GitVersion.App.csproj (with some additional arguments)

@arturcic
Copy link
Member

arturcic commented Nov 3, 2021

I think @asbjornu had similar issues building from source for homebrew, maybe he can give some advices

@asbjornu
Copy link
Member

asbjornu commented Nov 3, 2021

My problems wrt. the Homebrew formula was mostly to get the .NET SDK itself to build on Linux and macOS. You can read the discussion in Homebrew/homebrew-core#60929 (and all the linked discussions such as dotnet/source-build#1744) to get a feel of what I had to go through in order to get that working.

But now that it is working and both the dotnet and gitversion formulae seem to be upgraded automatically as new versions arrive (see Homebrew/homebrew-core#85860 and Homebrew/homebrew-core#83486), I don't think any such problems should exist anymore.

What problems are you experiencing around building on Linux, @DJViking?

@stale
Copy link

stale bot commented Mar 2, 2022

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.

@stale stale bot added the stale label Mar 2, 2022
@stale stale bot closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants