-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go suggestions for PURL-TYPES.rst #196
base: master
Are you sure you want to change the base?
Changes from all commits
f6c0872
386ed37
2c577c8
d9a4810
e798965
a2a0b01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,14 +259,13 @@ golang | |
- There is no default package repository: this is implied in the namespace | ||
using the ``go get`` command conventions. | ||
- The ``namespace`` and `name` must be lowercased. | ||
- The ``subpath`` is used to point to a subpath inside a package. | ||
- The ``version`` is often empty when a commit is not specified and should be | ||
the commit in most cases when available. | ||
- The ``subpath`` is used to point to a package inside a module. | ||
- The ``version`` may start with a lowercased "v" followed by: a semantic version, or a Go "pseudo-version", which consists of a semantic version followed by a timestamp and revision identifier. | ||
- Examples:: | ||
|
||
pkg:golang/github.com/gorilla/context@234fd47e07d1004f0aed9c | ||
pkg:golang/github.com/gorilla/context@v1.1.1 | ||
pkg:golang/google.golang.org/genproto#googleapis/api/annotations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ☝️ This still leaves an empty version example without while removing the mention from the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. mentioned this above, but |
||
pkg:golang/github.com/gorilla/context@234fd47e07d1004f0aed9c#api | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep one of the github sha-1 hash examples in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At least for modern Go tools, it should be a pseudo-version, not a bare commit ID like it is now: https://go.dev/doc/modules/version-numbers#in-development |
||
pkg:golang/golang.org/x/[email protected]#collate | ||
|
||
hackage | ||
------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did this definition of namespace/name go?
see #308
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkowalleck your Issue adds more nuance to this problem, so I left a link in there to an argument against namespaces for Go : #63 (comment)
to expedite this PR, I'll just revert that removal for now.