| commit | caed7d71358bcca1c795237fd8d2b53e1cdfc0f5 | [log] [tgz] |
|---|---|---|
| author | Marc-Antoine Ruel <maruel@google.com> | Thu Nov 19 15:03:22 2020 +0000 |
| committer | CQ Bot <commit-bot@chromium.org> | Thu Nov 19 15:03:22 2020 +0000 |
| tree | d81284a3f9202627cb121d36dc2e62ef46a7f4e3 | |
| parent | 0257862684d6e7f7b4d56fc10e7e7501689c3087 [diff] |
[go] Opt out all code that can't build with native go toolchain
This is done by adding the build tag:
// +build !build_with_native_toolchain
Made fixes until this command (as a oneliner) succeeded:
for i in $(ls */go.mod | xargs dirname); do
echo $i;
cd ./$i;
go build -tags build_with_native_toolchain ./...;
cd -;
done
I had to move code around as code generated by stringer is never opted
out.
I also updated one go package documentation to be more standard.
Bug: 63735
Change-Id: I565b97411760a913de18ab64a7ab3f4a0dbc9c6b
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/451518
Reviewed-by: Oliver Newman <olivernewman@google.com>
Reviewed-by: Petr Hosek <phosek@google.com>
Testability-Review: Oliver Newman <olivernewman@google.com>
Commit-Queue: Marc-Antoine Ruel <maruel@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.