1 |
On 2022-03-05 16:17-0600 William Hubbs <williamh@g.o> wrote: |
2 |
|
3 |
> +# @CODE |
4 |
> +# |
5 |
> +# $ cd /path/to/project |
6 |
> +# $ GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw |
7 |
> +# $ tar -acf project-1.0-deps.tar.xz go-mod |
8 |
|
9 |
What's the reason to use `go mod download` here and not `go mod |
10 |
vendor`? The former seems to always generate much bigger directories. |
11 |
For www-apps/hugo it is 1.5G vs. 65M and someone on IRC mentioned that |
12 |
for another ebuild it is >600M vs 22M. |
13 |
|
14 |
Kind regards, tastytea |