Am 25.06.20 um 18:43 schrieb Otavio Salvador:
Em qui., 25 de jun. de 2020 às 12:36, Stefan Herbrechtsmeier
<[email protected]> escreveu:
Am 24.06.20 um 22:24 schrieb Otavio Salvador:
Em qua., 24 de jun. de 2020 às 17:17, Stefan Herbrechtsmeier
<[email protected]> escreveu:
The go-mod.bbclass download data from the internet during do_compile. If
you cut the internet connection after a do_fetch the do_compile failed:

Yes, this was the better we could get without hacking go mod tool
itself. It would be nice if you can provide an alternative way to
improve it.


What are the alternative?

a) Add a fetcher to bitbake to create a vendor directory via `go mod
vendor`?
b) Add a `create_go.py` to recipetool and create a recipe per module?

The solutions are related to the npm (a) and python (b) solution.

I don't like a) because it breaks the best practices of OE (for example
one major version per project and avoid embedded dependencies). On the
other side b) isn't so simple because of the circular dependency between
go projects. This means we need a package (recipe) for the source and
the binary.

Honestly, it is hard. It kinda conflicts with the way go mod, cargo,
and similar tools work.

Both tools support a vendor command to download all dependencies. The fetcher need to call this command and archive the vendor folder. Alternative both tools support a replace / patch instruction to override dependencies with local directories.

Offline build, using go mod, I can only envision if we somehow provide
a local server which uses the bitbake cache as source. This by itself
is not a small project.

What do you mean by 'provide a local server'? Do you mean a registry server for go-mod and cargo?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#139963): 
https://lists.openembedded.org/g/openembedded-core/message/139963
Mute This Topic: https://lists.openembedded.org/mt/75063635/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to