• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

package-url / packageurl-go
89%
master: 89%

Build:
Build:
LAST BUILD BRANCH: type-constants
DEFAULT BRANCH: master
Repo Added 03 Feb 2022 08:52PM UTC
Token lPrYSAsCXgNBQsjyjAanQJA4Y9P5OZybm regen
Build 94 Last
Files 1
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH type-constants
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 59-add-knowntypes
  • TestSuiteData
  • add-pub-bitnami-types
  • add-vcpkg-type
  • benji.visser/remove-deprecated-ioutil-usage
  • cpan-optional-namespace
  • dot-slash-valid-subpath-prefix
  • escape
  • feat/add-missing-purl-types-20230403
  • fix-ci
  • fix-failing-cpan-unit-test
  • fix-failing-tests
  • fix-subpath-percent-decode
  • fix/encode-sub-delims-in-path-segments
  • fix/npm-missing-name
  • fix_tests
  • fuzz
  • go-mod-version
  • homebrew-case-sensitive
  • julia
  • known-cpan
  • license_link
  • main
  • master
  • normalize
  • npm-case-sensitive
  • patch-1
  • qualifiers
  • refs/tags/v0.1.1
  • refs/tags/v0.1.2
  • refs/tags/v0.1.4
  • refs/tags/v0.1.5
  • refs/tags/v0.1.6
  • support-input-version-with-slashes
  • type-constants
  • upstream_test_data

20 Aug 2026 07:35AM UTC coverage: 89.263%. Remained the same
32344891965

Pull #104

github

timofurrer
Make purl type identifiers constants

These are fixed spec identifiers, but as package-level vars any consumer
could reassign them and change parsing behaviour process-wide.

Leaving them untyped keeps this backwards compatible: every read-only
use still compiles, and assigning to a named string type now works too.
Only taking their address or reassigning them breaks, which is the point.

KnownTypes and CandidateTypes stay vars, since maps cannot be constants.
Pull Request #104: Make purl type identifiers constants

424 of 475 relevant lines covered (89.26%)

681.05 hits per line

Relevant lines Covered
Build:
Build:
475 RELEVANT LINES 424 COVERED LINES
681.05 HITS PER LINE
Source Files on master
  • Tree
  • List 1
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32344891965 type-constants Make purl type identifiers constants These are fixed spec identifiers, but as package-level vars any consumer could reassign them and change parsing behaviour process-wide. Leaving them untyped keeps this backwards compatible: every read-only us... Pull #104 21 Aug 2026 07:54AM UTC timofurrer github
89.26
32456461487 master Merge pull request #103 from william-elastisys/cpan-optional-namespace make cpan namespace optional push 21 Aug 2026 06:57AM UTC web-flow github
88.57
32456326182 cpan-optional-namespace make cpan namespace optional Pull #103 21 Aug 2026 06:55AM UTC petergardfjall github
88.57
32455545021 master Merge pull request #105 from william-elastisys/add-vcpkg-type add support for vcpkg purl-type push 21 Aug 2026 06:43AM UTC web-flow github
88.64
32455373444 add-vcpkg-type add support for vcpkg purl-type Pull #105 21 Aug 2026 06:41AM UTC petergardfjall github
88.64
32454184663 master Merge pull request #93 from czunker/fix/encode-sub-delims-in-path-segments Percent-encode sub-delimiters in name/version path segments push 21 Aug 2026 06:23AM UTC web-flow github
88.54
32453765209 fix/encode-sub-delims-in-path-segments Percent-encode sub-delimiters in name/version path segments Per the purl spec character-encoding section, the only characters that may appear unencoded in a name or version path segment are alphanumerics, the unreserved punctuation '-', '.', '_',... Pull #93 21 Aug 2026 06:18AM UTC petergardfjall github
88.54
32365331253 fix/npm-missing-name Reject npm purl with bare scope and no name Since v0.1.5, separateNamespaceNameVersion skips the missing-name guard for npm so that scoped packages such as "pkg:npm/@babel/core" parse. That exception is too broad: a remainder like "@4.17.21" has ... Pull #95 20 Aug 2026 11:48AM UTC petergardfjall github
88.89
32361826075 master Merge pull request #102 from william-elastisys/homebrew-case-sensitive make brew name and namespace lower-case push 20 Aug 2026 11:02AM UTC web-flow github
88.82
32361602854 homebrew-case-sensitive make brew name and namespace lower-case Pull #102 20 Aug 2026 11:00AM UTC petergardfjall github
88.82
See All Builds (94)

Badge your Repo: packageurl-go

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc