Skip to content

Commit

Permalink
feat: support pipx git hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 committed Dec 15, 2024
1 parent e303e6a commit 95be7f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/modules/manager/mise/backends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ export function createPipxToolConfig(
let repoName: string | undefined;
if (isGitSyntax) {
repoName = pipxGitHubRegex.exec(name)?.groups?.repo;
// mise only supports specifying the version tag for github repos
// If the url is not a github repo, treat the version as a git ref
if (is.undefined(repoName)) {
return {
packageName: name,
skipReason: 'unsupported-url',
packageName: name.replace(/^git\+/, '').replaceAll(/\.git$/, ''),
datasource: GitRefsDatasource.id,
};
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/mise/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const backendDatasources = {
cargo: [CrateDatasource.id, GitTagsDatasource.id, GitRefsDatasource.id],
go: [GoDatasource.id],
npm: [NpmDatasource.id],
pipx: [PypiDatasource.id, GithubTagsDatasource.id],
pipx: [PypiDatasource.id, GithubTagsDatasource.id, GitRefsDatasource.id],
spm: [GithubReleasesDatasource.id],
ubi: [GithubReleasesDatasource.id],
// not supported
Expand Down

0 comments on commit 95be7f4

Please sign in to comment.