-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #765 from actions/juxtin/allow-slashes-in-purls
Allow slashes in purl package names
- Loading branch information
Showing
4 changed files
with
37 additions
and
4 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 |
---|---|---|
|
@@ -44,6 +44,30 @@ test('parsePURL table test', () => { | |
error: null | ||
} | ||
}, | ||
{ | ||
purl: 'pkg:golang/gopkg.in/DataDog/[email protected]', | ||
// Note: this purl is technically invalid, but we can still parse it | ||
expected: { | ||
type: 'golang', | ||
namespace: 'gopkg.in', | ||
name: 'DataDog/dd-trace-go.v1', | ||
version: '1.63.1', | ||
original: 'pkg:golang/gopkg.in/DataDog/[email protected]', | ||
error: null | ||
} | ||
}, | ||
{ | ||
purl: 'pkg:golang/github.com/pelletier/go-toml/v2', | ||
// Note: this purl is technically invalid, but we can still parse it | ||
expected: { | ||
type: 'golang', | ||
namespace: 'github.com', | ||
name: 'pelletier/go-toml/v2', | ||
version: null, | ||
original: 'pkg:golang/github.com/pelletier/go-toml/v2', | ||
error: null | ||
} | ||
}, | ||
{ | ||
purl: 'pkg:npm/%40ns%20foo/n%40me@1.%2f2.3', | ||
expected: { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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