From: Christian Stewart <christian@paral.in>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH v1 1/6] package/go: implement go modules integration
Date: Sun, 07 Apr 2019 19:04:00 -0700 [thread overview]
Message-ID: <87mul1fe27.fsf@paral.in> (raw)
In-Reply-To: <20190407221726.130ca0fe@windsurf>
Hi Thomas,
Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> While browsing through the list of pending patches, I found the
> following patch series related to Go and package management:
>
> http://patchwork.ozlabs.org/project/buildroot/list/?series=68102
>
> The first patch in the series,
> http://patchwork.ozlabs.org/patch/976322/, introduces:
>
> + Glide is a tool for managing the _vendor_ directory within a Go
> + package. This feature, first introduced in Go 1.5, allows each
> + package to have a _vendor_ directory containing dependent
> + packages for the project. These vendor packages can be
> + installed by a tool (e.g. glide), similar to go get or they
> + can be vendored and distributed with the package.
>
> and it does a fair amount of changes in pkg-golang.mk.
>
> How does this fit (or not) with the changes you're proposing ?
Glide and other tools were built before Go modules were built. I do not
recommend integrating them into Buildroot. They are on the way out.
Please see the Go module wiki:
Specifically:
go mod init automatically translates the required information from
dep, glide, govendor, godep and 5 other pre-existing dependency
managers into a go.mod file that produces the equivalent build.
The Go developers left it up to the community to develop a source
package manager, which is why Glide, Dep (gopkg.toml), vendor.conf, and
other formats exist. These formats are intended to be completely
replaced by go.mod.
My suggestion is to instead solve the Go module stuff, and then bring in
Glide-based packages with the glide.lock file converted into the Go
module format via the above automatic process.
Best regards,
Christian
next prev parent reply other threads:[~2019-04-08 2:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-17 1:21 [Buildroot] [RFC PATCH v1 1/6] package/go: implement go modules integration Christian Stewart
2019-03-17 1:21 ` [Buildroot] [RFC PATCH v1 2/6] package/runc: upgrade to go modules Christian Stewart
2019-03-17 1:21 ` [Buildroot] [RFC PATCH v1 3/6] package/docker-containerd: " Christian Stewart
2019-04-05 8:36 ` Arnout Vandecappelle
2019-04-05 10:58 ` Christian Stewart
2019-03-17 1:21 ` [Buildroot] [RFC PATCH v1 4/6] docker-cli: " Christian Stewart
2019-03-17 1:21 ` [Buildroot] [RFC PATCH v1 5/6] docker-proxy: " Christian Stewart
2019-03-17 1:21 ` [Buildroot] [RFC PATCH v1 6/6] package/docker-engine: " Christian Stewart
2019-03-27 16:50 ` [Buildroot] [RFC PATCH v1 1/6] package/go: implement go modules integration Thomas Petazzoni
2019-03-27 18:36 ` Christian Stewart
2019-04-05 8:32 ` Arnout Vandecappelle
2019-04-05 10:47 ` Christian Stewart
2019-04-05 14:07 ` Arnout Vandecappelle
2019-04-05 17:49 ` Christian Stewart
2019-04-05 21:59 ` Arnout Vandecappelle
2019-04-06 3:13 ` Christian Stewart
2019-04-07 20:17 ` Thomas Petazzoni
2019-04-08 2:04 ` Christian Stewart [this message]
2019-04-08 7:02 ` Thomas Petazzoni
2019-04-08 7:06 ` Christian Stewart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mul1fe27.fsf@paral.in \
--to=christian@paral.in \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox