Why github release download link add a -1 to the tag version?

What i means is:

I use arch linux, i want to use the downloaded version instead of package installed verison.

Following is the link for 1.4.1, i will download it automatically use a bash script according to tag number.

https://github.com/crystal-lang/crystal/releases/download/1.4.1/crystal-1.4.1-1-linux-x86_64.tar.gz

I find the last part of this link is crystal-1.4.1-1-linux-x86_64.tar.gz, not crystal-1.4.1-linux-x86_64.tar.gz

What is the -1 stand for?

Thank you.

1 Like

It’s the first iteration of the distribution package.
In case there is a bug in the release build or any of the included libraries, for example, we’d wouldn’t release a new Crystal version kstofx tha. Instead, we’d build a new distribution package and increase that number to differentiate it from the previous one.

1 Like

So, if crystal-1.4.1-2-linux-x86_64.tar.gz available, download link will change to it, and old crystal-1.4.1-1-linux-x86_64.tar.gz will not available, right?

Thank you.

Yes, probably.

I don’t think this has ever happened, at least not since I’m involved with the release process. We’re prepared for it, but we don’t have an established plan for what to do.

1 Like

Thank you very much for help.

As a old Rubyist, i know Crystal release it 1.0 until recent days.

thank you very much for this pretty programming language, especially, so many ruby’s
histories problem get fixed in this new programming language, as describe in FAQ and to Rubyist

Awesome!

4 Likes