1 |
On Sat, Feb 26, 2022 at 10:38:33PM -0600, William Hubbs wrote: |
2 |
> diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass |
3 |
> index 66fe52c9ad7..b9686ad555a 100644 |
4 |
> --- a/eclass/go-module.eclass |
5 |
> +++ b/eclass/go-module.eclass |
6 |
> @@ -25,9 +25,26 @@ |
7 |
> # |
8 |
> # If the software has a directory named vendor in its |
9 |
> # top level directory, the only thing you need to do is inherit the |
10 |
> -# eclass. Otherwise, you need to also populate |
11 |
> -# EGO_SUM and call go-module_set_globals as discussed below. |
12 |
> +# eclass. If it doesn't, you need to also create a vendor tarball and |
13 |
|
14 |
Unnecessary double space. |
15 |
|
16 |
> +# host it somewhere, for example in your dev space. |
17 |
> # |
18 |
> +# Here are the commands to create a vendor tarball. |
19 |
> +# |
20 |
> +# @CODE |
21 |
> +# |
22 |
> +# $ cd /path/to/project |
23 |
> +# $ go mod vendor |
24 |
> +# $ tar -acf project-1.0-vendor.tar.xz vendor --xform 's:^":project-1.0/:' |
25 |
|
26 |
Typo, that " doesn't exist at start of paths and it'd do nothing. |
27 |
Should just be 's:^:project-1.0/:' |
28 |
|
29 |
> -# SRC_URI="https://github.com/example/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
30 |
> -# ${EGO_SUM_SRC_URI}" |
31 |
> +# SRC_URI="https://github.com/example/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
> +# Do not add the next line if you don't have a vendor tarball |
33 |
> +# SRC_URI+="${P}-vendor.tar.gz" |
34 |
|
35 |
Since example use .xz, should use it over .gz for vendor tarball. |
36 |
|
37 |
> @@ -256,7 +197,7 @@ go-module_set_globals() { |
38 |
> # Relative URI within a GOPROXY for a file |
39 |
> _reluri="${_dir}/@v/${version}.${_ext}" |
40 |
> # SRC_URI: LHS entry |
41 |
> - _uri="${_GOMODULE_GOPROXY_BASEURI}/${_reluri}" |
42 |
> + _uri="mirror://goproxy/${_reluri}" |
43 |
> # _uri="mirror://goproxy/${_reluri}" |
44 |
|
45 |
Unnecessary comment that duplicates the now-used above line. |
46 |
|
47 |
-- |
48 |
ionen |