Skip to content

fix(nix): urldecode gitlab subgroups#34863

Merged
rarkins merged 1 commit intorenovatebot:mainfrom
xanderio:fix-nix-gitlab
Mar 17, 2025
Merged

fix(nix): urldecode gitlab subgroups#34863
rarkins merged 1 commit intorenovatebot:mainfrom
xanderio:fix-nix-gitlab

Conversation

@xanderio
Copy link
Copy Markdown
Contributor

Do to a bug in nix one needs to uri encode the owner of a gitlab repository that resides in a subgroups, in this case the / as %20F. This however breaks the git ls-remotes which renovate runs to discover if the input can be updated.

This commit passes the owner attribute through decodeURIComponent to ensure that git is unware of this workaround on nixs side.

Nix PR: NixOS/nix#9163

Changes

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

Do to a bug in nix one needs to uri encode the owner of a gitlab repository
that resides in a subgroups, in this case the `/` as `%20F`. This
however breaks the `git ls-remotes` which renovate runs to discover if
the input can be updated.

This commit passes the owner attribute through `decodeURIComponent` to ensure
that `git` is unware of this workaround on nixs side.

Nix PR: NixOS/nix#9163
@rarkins rarkins enabled auto-merge March 17, 2025 12:55
@rarkins rarkins added this pull request to the merge queue Mar 17, 2025
Merged via the queue into renovatebot:main with commit 7aa1e47 Mar 17, 2025
40 checks passed
@renovate-release
Copy link
Copy Markdown

🎉 This PR is included in version 39.207.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@xanderio xanderio deleted the fix-nix-gitlab branch March 17, 2025 13:23
});
});

const flake12Lock = `{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be moved inside the test and use codeBlock template helper

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants