Repository navigation
Expand file tree
/
Copy pathgolang-definition.json
More file actions
35 lines (35 loc) · 1.55 KB
/
Copy pathgolang-definition.json
File metadata and controls
35 lines (35 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"$schema": "https://packageurl.org/purl-schemas/purl-type-definition.schema-1.1.json",
"$id": "https://packageurl.org/purl-types/golang-definition.json",
"type": "golang",
"type_name": "Go package",
"description": "Go packages",
"repository": {
"use_repository": true,
"note": "There is no default package repository, this is implied in the namespace using the go get command conventions. In practice the Go module proxy acts as a public default repository."
},
"namespace_definition": {
"requirement": "required",
"case_sensitive": true,
"note": "The namespace shall be lowercased."
},
"name_definition": {
"requirement": "required",
"case_sensitive": true,
"note": "The name shall be lowercased."
},
"subpath_definition": {
"requirement": "optional",
"note": "The subpath is used to point to a subpath inside a package."
},
"note": "The current definition predates Go modules and has several practical problems, and in particular it is impossible to determine what is a module and what is a package short of having full access to the source code or making an API call to the Go module proxy.",
"version_definition": {
"requirement": "optional",
"note": "The version is often empty when a commit is not specified and should be the commit in most cases when available."
},
"examples": [
"pkg:golang/github.com/gorilla/context@234fd47e07d1004f0aed9c",
"pkg:golang/google.golang.org/genproto#googleapis/api/annotations",
"pkg:golang/github.com/gorilla/context@234fd47e07d1004f0aed9c#api"
]
}