[Slackbuilds-users] Updates - 20240525.1

Lockywolf for_slackbuilds-users_mlist_2023-04-21 at lockywolf.net
Tue May 28 13:26:40 UTC 2024


Ruben Schuller <sb at rbn.im> writes:

> Hi,
>
> 2024-05-27 Willy Sudiarto Raharjo <willysr at slackbuilds.org>:
>
>> Unfortunately, most of go-related packages requires network access to 
>> download all the modules
>> 
>> i will try to use vendored script to make offline build for this
>> week's release
>
> Nice.
>
> I just looked up [1] how to download modules directly from the go module
> proxy. It's rather simple: https://go.dev/ref/mod#goproxy-protocol
> To download the module "github.com/lib/pq", version v1.10.9 you would
> download https://proxy.golang.org/github.com/lib/pq/@v/v1.10.9.zip
>
> Unfortunately the zip-files are named only using the version, making
> collisions likely. The module server doesn't send a Content-Disposition
> header and doesn't allow for arbitrarily named files like GitHub does
> for tags.
>
> So either we allow source files with the same file name in info files,
> likely giving trouble with automated build systems or the Go people add
> a possibility to allow named files. I fear it's unlikely that the
> module server will see this added.
>
> Side note: I think it would be nice to standardize on something like
> "download.sh" which SlackBuilds can optionally provide for cases like
> this. It would still allow the classic way while adding comfort
> and the possibility for automatization. Another thing would be optional
> "$PRGNAM.info_$(uname -m)" files, or similar, for other architectures.
>
> Cheers
> Ruben
>
> [1] https://go.dev/ref/mod#goproxy-protocol
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/

There is an concept by Alexander Verbovetsky, which I tried to implement
as a script:

https://gitlab.com/Lockywolf/lwfslackbuilds/-/blob/master/02_lockywolf-sbo-scripts/ejik-generate-go-deps.bash?ref_type=heads

this should create a "vendor" directory with the modules.
It is not completely working, there are some hairs to brush, but I think
it is a decent start.

-- 
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20240528/f8f07ece/attachment.asc>


More information about the SlackBuilds-users mailing list