RubyMetric / chsrc

chsrc 全平台通用换源工具. Change Source for every software on every platform from the command line.
https://gitee.com/RubyMetric/chsrc
GNU General Public License v3.0
1.32k stars 54 forks source link

consider marking 0.1.5 tag as latest release #27

Closed chenrui333 closed 3 weeks ago

chenrui333 commented 1 month ago

👋 looks like 0.1.5 tag is not the latest, consider mark it as latest and remove the latest tag (which is kind of outdated)

image

relates to https://github.com/Homebrew/homebrew-core/pull/173951

ccmywish commented 4 weeks ago

Hi @chenrui333

I've released the newest version v0.1.6.


Do I have to remove the tag latest? In fact, I'm still using it to provide (in GitHub actions) a stable url for users to always download the real latest precompiled binaries. See: https://github.com/RubyMetric/chsrc/blob/main/.github/workflows/linux-x64.yml#L23-L30

That means,

  1. the binaries in tag latest release and in tag v0.1.6 release are just the totally same.
  2. However, the source code in two releases are not the same, the code in latest release is surely obsolete as you think.


So could you please give me some advice based on your abundant experience? Is there any best practice? Or it just doesn't matter?

ccmywish commented 4 weeks ago

I'm wondering how homebrew work to check updating.

Now the repo has two latest:

  1. tag name v0.1.6: I've set it to Latest via GitHub release page image

  2. tag name latest,it's just a name which I used git tag to generate.


So which one will homebrew consider?

chenrui333 commented 4 weeks ago

Do I have to remove the tag latest? In fact, I'm still using it to provide (in GitHub actions) a stable url for users to always download the real latest precompiled binaries.

what you should do is probably like what folks are doing with github actions, so that v1 would be a alias tag to all v1 releases.

because the latest approach would be dangerous for v2 v3 breaking releases.

what do you think?

ccmywish commented 4 weeks ago

Thank you for pointing out the breaking issue.

Although I don't think this command line tool's interface will change, I still appreciate the idea.

I will rename the tag latest to another name like prebuilt or something.

ccmywish commented 3 weeks ago

Rename to tag pre, and set it to Pre-release