Skip to content

Strip .git extension from scoop source URLs#3383

Merged
Martí Climent (marticliment) merged 2 commits intoDevolutions:mainfrom
SierraKomodo:fix/scoop-source-urls
Mar 1, 2025
Merged

Strip .git extension from scoop source URLs#3383
Martí Climent (marticliment) merged 2 commits intoDevolutions:mainfrom
SierraKomodo:fix/scoop-source-urls

Conversation

@SierraKomodo
Copy link
Copy Markdown
Contributor

  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • This PR is not composed of garbage changes used to farm GitHub activity to enter potential Crypto AirDrops.
    Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.

Uses regex to remove .git from the end of Scoop source URLs, so that generated manifest links in package information are valid.

The specific regex pattern ^(.*)\.git$ is used in case of urls in custom buckets having .git in the domain name. I.e., someguy.gitrepo.tld. The only part that needs to be removed here is the suffix if present.

Will be rendered redundant and should be reverted if ScoopInstaller/Scoop#6297 is addressed directly by Scoop.


Fixes #3367

Fixes Devolutions#3367

Will be rendered redundant and should be reverted if
ScoopInstaller/Scoop#6297 is addressed
directly by Scoop.
@SierraKomodo
Copy link
Copy Markdown
Contributor Author

Regex was slightly malformed yet still functioned. Funny but oops.

@marticliment
Copy link
Copy Markdown
Collaborator

Thanks!

I will test and merge later today.

@marticliment Martí Climent (marticliment) merged commit 2cd76b8 into Devolutions:main Mar 1, 2025
2 checks passed
@SierraKomodo SierraKomodo (SierraKomodo) deleted the fix/scoop-source-urls branch March 11, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Manifest URLs to GitHub for scoop packages in details view is incorrect

2 participants