Merge ~adam-collard/maas:debug-machine-resources-build into maas:master

Proposed by Adam Collard
Status: Rejected
Rejected by: Adam Collard
Proposed branch: ~adam-collard/maas:debug-machine-resources-build
Merge into: maas:master
Diff against target: 152 lines (+68/-8)
3 files modified
snap/snapcraft.yaml (+2/-0)
src/machine-resources/Makefile (+6/-1)
src/machine-resources/src/machine-resources/Gopkg.lock (+60/-7)
Reviewer Review Type Date Requested Status
MAAS Lander unittests Pending
MAAS Maintainers Pending
Review via email: mp+394118@code.launchpad.net

Commit message

Add debug information when building machine-resources

To post a comment you must log in.
b7a7e87... by Adam Collard

Reduce number of parallel jobs when building machine-resources

1e140f0... by Adam Collard

Sync the FS after building

2248265... by Adam Collard

Add gcc-multilib as build-time dependency for machine-resource

26d493f... by Adam Collard

Revert previous commit, try bumping deps

b7b5a27... by Adam Collard

print workdir

4d8e766... by Adam Collard

More debugging :(

2cdf9ed... by Adam Collard

More debugging :((

a120b6b... by Adam Collard

More debugging :(((

caf437b... by Adam Collard

Try explicit output dir

Unmerged commits

caf437b... by Adam Collard

Try explicit output dir

a120b6b... by Adam Collard

More debugging :(((

2cdf9ed... by Adam Collard

More debugging :((

4d8e766... by Adam Collard

More debugging :(

b7b5a27... by Adam Collard

print workdir

26d493f... by Adam Collard

Revert previous commit, try bumping deps

2248265... by Adam Collard

Add gcc-multilib as build-time dependency for machine-resource

1e140f0... by Adam Collard

Sync the FS after building

b7a7e87... by Adam Collard

Reduce number of parallel jobs when building machine-resources

8cc9513... by Adam Collard

Add debug information when building machine-resources

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
2index c0a11c4..3e05cac 100644
3--- a/snap/snapcraft.yaml
4+++ b/snap/snapcraft.yaml
5@@ -233,6 +233,8 @@ parts:
6
7 machine-resources:
8 plugin: make
9+ make-parameters:
10+ - --jobs=1
11 source: src/machine-resources
12 build-snaps:
13 - go
14diff --git a/src/machine-resources/Makefile b/src/machine-resources/Makefile
15index 25a12d8..876f3b8 100644
16--- a/src/machine-resources/Makefile
17+++ b/src/machine-resources/Makefile
18@@ -28,7 +28,12 @@ build: $(BINARIES)
19 .PHONY: build
20
21 $(BINARIES): $(PACKAGE_VENDOR_DIR) $(PACKAGE_DIR)/main.go
22- GOCACHE=$(GO_CACHE_DIR) GOARCH=$(GOARCH_$(notdir $@)) go build -ldflags '-s -w' -o $@ machine-resources
23+ pwd
24+ echo $(GOPATH)
25+ GOCACHE=$(GO_CACHE_DIR) GOARCH=$(GOARCH_$(notdir $@)) go build -work -x -ldflags '-s -w' -o $(CURDIR)/$@ machine-resources 2>&1 | sed -e 's/^/[$(GOARCH_$(notdir $@))] /' 1>&2
26+ sync
27+ sync
28+ ls -la
29
30 $(PACKAGE_VENDOR_DIR) vendor:
31 rm -rf $(PACKAGE_VENDOR_DIR)
32diff --git a/src/machine-resources/src/machine-resources/Gopkg.lock b/src/machine-resources/src/machine-resources/Gopkg.lock
33index fbd28e4..b061b5b 100644
34--- a/src/machine-resources/src/machine-resources/Gopkg.lock
35+++ b/src/machine-resources/src/machine-resources/Gopkg.lock
36@@ -2,56 +2,109 @@
37
38
39 [[projects]]
40+ digest = "1:0675c37c9ab84b1be69979619609bfb3b3fa008679b36cd34944c71b5295af4a"
41 name = "github.com/flosch/pongo2"
42 packages = ["."]
43- revision = "5e81b817a0c48c1c57cdf1a9056cf76bdee02ca9"
44- version = "v3.0"
45+ pruneopts = ""
46+ revision = "f946812ec8d53b724e4daeb888c95ab63c98b3c0"
47+ version = "v4.0.0"
48
49 [[projects]]
50+ digest = "1:25eec675540d3cf690b593f161626a8bbf1d25e60d5cc8f8d51f38c467a32766"
51+ name = "github.com/google/uuid"
52+ packages = ["."]
53+ pruneopts = ""
54+ revision = "0e4e31197428a347842d152773b4cace4645ca25"
55+ version = "v1.1.2"
56+
57+[[projects]]
58+ digest = "1:5122b0b5a933bd0e16b887aa7844933c8a09fb5ba9b5f5651253cb5336c6462a"
59 name = "github.com/gorilla/websocket"
60 packages = ["."]
61+ pruneopts = ""
62 revision = "b65e62901fc1c0d968042419e74789f6af455eb9"
63 version = "v1.4.2"
64
65 [[projects]]
66+ digest = "1:0c9cf259a0f3c81866f5fd5f8c11827542f7b8c917d59dafa0730f1bc73b66a8"
67 name = "github.com/jaypipes/pcidb"
68 packages = ["."]
69+ pruneopts = ""
70 revision = "98ef3ee36c69f20650fe7855047ad042338c6983"
71 version = "v0.5.0"
72
73 [[projects]]
74 branch = "master"
75+ digest = "1:0ab775b6006b2d1951209ef559c5add147195d0f77b284105961f78f097466ce"
76 name = "github.com/lxc/lxd"
77- packages = ["lxd/include","lxd/resources","shared","shared/api","shared/cancel","shared/ioprogress","shared/logger","shared/osarch","shared/units","shared/usbid","shared/validate","shared/version"]
78- revision = "4c7cd25c6842f49f3a29468aa745ee97651d42bd"
79+ packages = [
80+ "lxd/include",
81+ "lxd/resources",
82+ "shared",
83+ "shared/api",
84+ "shared/cancel",
85+ "shared/ioprogress",
86+ "shared/logger",
87+ "shared/osarch",
88+ "shared/units",
89+ "shared/usbid",
90+ "shared/validate",
91+ "shared/version",
92+ ]
93+ pruneopts = ""
94+ revision = "0213e78fbad4c1f4c549bcef84ba54fb4df54348"
95
96 [[projects]]
97+ digest = "1:6dbb0eb72090871f2e58d1e37973fe3cb8c0f45f49459398d3fc740cb30e13bd"
98 name = "github.com/mitchellh/go-homedir"
99 packages = ["."]
100+ pruneopts = ""
101 revision = "af06845cf3004701891bf4fdb884bfe4920b3727"
102 version = "v1.1.0"
103
104 [[projects]]
105+ digest = "1:ce2a988688eca16ba1646676d3880b2e27cec585c1c4d63d31281c2c0001b1a6"
106+ name = "github.com/pborman/uuid"
107+ packages = ["."]
108+ pruneopts = ""
109+ revision = "5b6091a6a160ee5ce12917b21ab96acec2a4fdc0"
110+ version = "v1.2.1"
111+
112+[[projects]]
113+ digest = "1:c45802472e0c06928cd997661f2af610accd85217023b1d5f6331bebce0671d3"
114 name = "github.com/pkg/errors"
115 packages = ["."]
116+ pruneopts = ""
117 revision = "614d223910a179a466c1767a985424175c39b465"
118 version = "v0.9.1"
119
120 [[projects]]
121 branch = "master"
122+ digest = "1:3d2a2835773ff2a9149219731e5acb01cc3dd0f46cc503bf2575c584eea4dfac"
123 name = "golang.org/x/sys"
124- packages = ["internal/unsafeheader","unix","windows"]
125- revision = "0cf7623e9dbd9bc79267b27a7e6c5757ef550423"
126+ packages = [
127+ "internal/unsafeheader",
128+ "unix",
129+ "windows",
130+ ]
131+ pruneopts = ""
132+ revision = "f84b799fce68db3cb46a8f6f819c1e56377181df"
133
134 [[projects]]
135 branch = "v2"
136+ digest = "1:92a9d3d81fc5b50d5ccf0c72b9888cd27acf277894f8aa18f4c9c41de8311555"
137 name = "gopkg.in/robfig/cron.v2"
138 packages = ["."]
139+ pruneopts = ""
140 revision = "be2e0b0deed5a68ffee390b4583a13aff8321535"
141
142 [solve-meta]
143 analyzer-name = "dep"
144 analyzer-version = 1
145- inputs-digest = "0aa702d9956536c2ac11ab31b412046932bc18980bb395c40153f94d457e48c6"
146+ input-imports = [
147+ "github.com/lxc/lxd/lxd/resources",
148+ "github.com/lxc/lxd/shared",
149+ "github.com/lxc/lxd/shared/version",
150+ ]
151 solver-name = "gps-cdcl"
152 solver-version = 1

Subscribers

People subscribed via source and target branches