Add Codeberg repository download link suggestions #1500

Open
fed500 wants to merge 1 commit from codeberg into main
Member
No description provided.
Owner

Thank you, I had working on forgejo / codeberg SourceURL docs on my TODO list! Two questions:

  1. Is there no URL pattern that would let us avoid the "HTML anchor trick"? It might be time to just drop that entirely, having just the version / commit be the filename base is perfectly fine in most cases ..
  2. Is the contained folder really just the project name, without commit or version information? That seems ... a strange "choice", or is it a bug on the forgejo side? Might be good to investigate before hard-coding it into our guidelines.
Thank you, I had working on forgejo / codeberg SourceURL docs on my TODO list! Two questions: 1. Is there no URL pattern that would let us avoid the "HTML anchor trick"? It might be time to just drop that entirely, having just the version / commit be the filename base is perfectly fine in most cases .. 2. Is the contained folder really just the project name, without commit or version information? That seems ... a strange "choice", or is it a bug on the forgejo side? Might be good to investigate before hard-coding it into our guidelines.
Owner

We should ask the Forgejo people to add it the URL pattern we want. I did that years ago with GitLab, and they did add it for us. They try to be GitHub-compatible, so this might fall under that anyway.

We should ask the Forgejo people to add it the URL pattern we want. I did that years ago with GitLab, and they did add it for us. They try to be GitHub-compatible, so this might fall under that anyway.
Owner

Is the contained folder really just the project name, without commit or version information?

We should just update our guidelines to use %autosetup -C instead, so people can stop thinking about the top-level directory.

> Is the contained folder really just the project name, without commit or version information? We should just update our guidelines to use `%autosetup -C` instead, so people can stop thinking about the top-level directory.
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codeberg:codeberg
git switch codeberg

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff codeberg
git switch codeberg
git rebase main
git switch main
git merge --ff-only codeberg
git switch codeberg
git rebase main
git switch main
git merge --no-ff codeberg
git switch main
git merge --squash codeberg
git switch main
git merge --ff-only codeberg
git switch main
git merge codeberg
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
packaging/guidelines!1500
No description provided.