-
Notifications
You must be signed in to change notification settings - Fork 15
WIP: tests: use onebranch amd64 runner for go build tasks #587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -500,14 +500,23 @@ bin/liveinstaller: \ | |||
| $(INSTALLER_DIR)/go.sum | ||||
| @mkdir -p bin | ||||
| cd $(INSTALLER_DIR)/liveinstaller && \ | ||||
| CGO_ENABLED=0 go build -o $(CURDIR)/$(INSTALLER_OUT_DIR)/liveinstaller | ||||
| if cat /etc/os-release | grep -i azurelinux >/dev/null 2>&1; then \ | ||||
| GOEXPERIMENT=ms_nocgo_opensslcrypto go build -o $(CURDIR)/$(INSTALLER_OUT_DIR)/liveinstaller; \ | ||||
| else \ | ||||
| CGO_ENABLED=0 go build -o $(CURDIR)/$(INSTALLER_OUT_DIR)/liveinstaller; \ | ||||
| fi | ||||
|
|
||||
| bin/attendedinstaller-simulator: \ | ||||
| $(shell find $(INSTALLER_DIR)/imagegen/ -type f) \ | ||||
| $(INSTALLER_DIR)/go.sum | ||||
| @mkdir -p bin | ||||
| cd $(INSTALLER_DIR)/imagegen/attendedinstaller/attendedinstaller_tests && \ | ||||
| CGO_ENABLED=0 go build -o $(CURDIR)/$(INSTALLER_OUT_DIR)/attendedinstaller-simulator attendedinstaller_simulator.go | ||||
| if cat /etc/os-release | grep -i azurelinux >/dev/null 2>&1; then \ | ||||
| GOEXPERIMENT=ms_nocgo_opensslcrypto go build -o $(CURDIR)/$(INSTALLER_OUT_DIR)/attendedinstaller-simulator attendedinstaller_simulator.go; \ | ||||
| else \ | ||||
| CGO_ENABLED=0 go build -o $(CURDIR)/$(INSTALLER_OUT_DIR)/attendedinstaller-simulator attendedinstaller_simulator.go; \ | ||||
| fi | ||||
|
Comment on lines
+514
to
+518
|
||||
|
|
||||
|
|
||||
|
Comment on lines
+519
to
520
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OS detection pipeline uses
cat /etc/os-release | grep ...but only redirects grep’s output; if/etc/os-releaseis missing (e.g., non-Linux dev env),catwill still emit an error to stderr, adding noisy/confusing output to this target.Suggestion: avoid
catand rungrepdirectly against the file (and/or redirect file-read errors) so the check is quiet when the file doesn’t exist.