-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-git): add support for github tarball urls (#1321)
* feat(plugin-git): add support for github tarball urls Fixes #885. * chore(release-workflow): set releases * test(plugin-git): add tarball pattern and update snapshots
- Loading branch information
1 parent
b1d046b
commit 563abf8
Showing
4 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
releases: | ||
"@yarnpkg/plugin-git": prerelease | ||
"@yarnpkg/cli": prerelease | ||
|
||
declined: | ||
- "@yarnpkg/plugin-compat" | ||
- "@yarnpkg/plugin-constraints" | ||
- "@yarnpkg/plugin-dlx" | ||
- "@yarnpkg/plugin-essentials" | ||
- "@yarnpkg/plugin-exec" | ||
- "@yarnpkg/plugin-file" | ||
- "@yarnpkg/plugin-git" | ||
- "@yarnpkg/plugin-github" | ||
- "@yarnpkg/plugin-http" | ||
- "@yarnpkg/plugin-init" | ||
- "@yarnpkg/plugin-interactive-tools" | ||
- "@yarnpkg/plugin-link" | ||
- "@yarnpkg/plugin-node-modules" | ||
- "@yarnpkg/plugin-npm" | ||
- "@yarnpkg/plugin-npm-cli" | ||
- "@yarnpkg/plugin-pack" | ||
- "@yarnpkg/plugin-patch" | ||
- "@yarnpkg/plugin-pnp" | ||
- "@yarnpkg/plugin-stage" | ||
- "@yarnpkg/plugin-typescript" | ||
- "@yarnpkg/plugin-version" | ||
- "@yarnpkg/plugin-workspace-tools" | ||
- "@yarnpkg/core" | ||
- "@yarnpkg/builder" | ||
- "@yarnpkg/doctor" | ||
- "@yarnpkg/pnpify" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,14 @@ exports[`gitUtils should properly normalize https://github.com/TooTallNate/util- | |
|
||
exports[`gitUtils should properly normalize https://github.com/TooTallNate/util-deprecate.git#v1.0.0 1`] = `"https://github.com/TooTallNate/util-deprecate.git#v1.0.0"`; | ||
|
||
exports[`gitUtils should properly normalize https://github.com/TooTallNate/util-deprecate/tarball/b3562c2798507869edb767da869cd7b85487726d 1`] = `"https://github.com/TooTallNate/util-deprecate.git#b3562c2798507869edb767da869cd7b85487726d"`; | ||
|
||
exports[`gitUtils should properly normalize ssh://[email protected]/TooTallNate/util-deprecate.git#v1.0.1 1`] = `"ssh://[email protected]/TooTallNate/util-deprecate.git#v1.0.1"`; | ||
|
||
exports[`gitUtils should properly split GitHubOrg/foo-bar.js 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "head", | ||
"request": "master", | ||
|
@@ -48,7 +50,7 @@ Object { | |
exports[`gitUtils should properly split GitHubOrg/foo-bar.js#commit:hash 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "commit", | ||
"request": "hash", | ||
|
@@ -59,7 +61,7 @@ Object { | |
exports[`gitUtils should properly split GitHubOrg/foo-bar.js#commit=hash 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "commit", | ||
"request": "hash", | ||
|
@@ -72,7 +74,7 @@ Object { | |
"extra": Object { | ||
"workspace": "foo", | ||
}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "commit", | ||
"request": "hash", | ||
|
@@ -83,7 +85,7 @@ Object { | |
exports[`gitUtils should properly split GitHubOrg/foo-bar.js#hash 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": null, | ||
"request": "hash", | ||
|
@@ -94,7 +96,7 @@ Object { | |
exports[`gitUtils should properly split GitHubOrg/foo-bar.js#tag=hello 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "tag", | ||
"request": "hello", | ||
|
@@ -107,7 +109,7 @@ Object { | |
"extra": Object { | ||
"workspace": "foo", | ||
}, | ||
"repo": "GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "head", | ||
"request": "master", | ||
|
@@ -118,7 +120,7 @@ Object { | |
exports[`gitUtils should properly split GitHubOrg/foo2bar.js 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "GitHubOrg/foo2bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo2bar.js.git", | ||
"treeish": Object { | ||
"protocol": "head", | ||
"request": "master", | ||
|
@@ -151,7 +153,7 @@ Object { | |
exports[`gitUtils should properly split github:GitHubOrg/foo-bar.js 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "github:GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": "head", | ||
"request": "master", | ||
|
@@ -162,7 +164,7 @@ Object { | |
exports[`gitUtils should properly split github:GitHubOrg/foo-bar.js#hash 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "github:GitHubOrg/foo-bar.js", | ||
"repo": "https://github.com/GitHubOrg/foo-bar.js.git", | ||
"treeish": Object { | ||
"protocol": null, | ||
"request": "hash", | ||
|
@@ -214,6 +216,17 @@ Object { | |
} | ||
`; | ||
|
||
exports[`gitUtils should properly split https://github.com/TooTallNate/util-deprecate/tarball/b3562c2798507869edb767da869cd7b85487726d 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
"repo": "https://github.com/TooTallNate/util-deprecate.git", | ||
"treeish": Object { | ||
"protocol": null, | ||
"request": "b3562c2798507869edb767da869cd7b85487726d", | ||
}, | ||
} | ||
`; | ||
|
||
exports[`gitUtils should properly split ssh://[email protected]/TooTallNate/util-deprecate.git#v1.0.1 1`] = ` | ||
Object { | ||
"extra": Object {}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ const VALID_PATTERNS = [ | |
`https://github.com/TooTallNate/util-deprecate.git#semver:v1.0.0`, | ||
`https://github.com/TooTallNate/util-deprecate.git#master`, | ||
`https://github.com/TooTallNate/util-deprecate.git#b3562c2798507869edb767da869cd7b85487726d`, | ||
`https://github.com/TooTallNate/util-deprecate/tarball/b3562c2798507869edb767da869cd7b85487726d`, | ||
`git://github.com/TooTallNate/util-deprecate.git#v1.0.1`, | ||
`git+ssh://[email protected]/TooTallNate/util-deprecate.git#v1.0.1`, | ||
`ssh://[email protected]/TooTallNate/util-deprecate.git#v1.0.1`, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters