#32 Issues with gitea
Closed 2 months ago by qulogic. Opened 5 months ago by eclipseo.

When packaging: code.gitea.io/tea
The goname is reduced to golang-codeea-tea

Also the download link is wrong: it is resolved to
https://gitea.com/gitea/tea/archive/0.7.0.tar.gz
whereas it should be
https://gitea.com/gitea/tea/archive/v0.7.0.tar.gz

Can someone with knowledge of Lua regex fix this?


The v prefix depends on if upstream decided to add it, but it's not necessarily a thing that must happen. @nim decided to default to adding it, but that can be overridden by setting tag. Are you setting %global tag 0.7.0?

The v prefix depends on if upstream decided to add it, but it's not necessarily a thing that must happen. @nim decided to default to adding it, but that can be overridden by setting tag. Are you setting %global tag 0.7.0?

That,s the opposite, I set up:

Version: 0.7.0

But the Source URL does not contain the v. To remedy this, I had to set up:

%global tag v0.7.0

to add the missing v.

OK, that apparently only happens for GitHub archive URLs, because @nim decided this is some kind of 'bug' in GitHub and added v for it and Google Code only. The same process was not added for gitea, presumably because whoever added it did not want to do the same magic. But in either case, picking the default tag is the realm of the forge macros, not these ones.

The git part is in the Go srpm macros; it appears to be a bug in the .git/ suffix removal.

The parts related to Go macros were fixed by #33.

Metadata Update from @qulogic:
- Issue status updated to: Closed (was: Open)

2 months ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #33 Merged 4 months ago