-
Notifications
You must be signed in to change notification settings - Fork 213
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
fix: failed to build binary by make retina-binary #129
Conversation
@microsoft-github-policy-service agree |
d329186
to
395bbb5
Compare
@nayihz while I believe that this fixes the issue, I don't understand why we don't encounter this issue when we build in our container? https://github.com/microsoft/retina/blob/main/controller/Dockerfile.controller#L38 |
TIL about
|
@rbtr It's because we set retina/controller/Dockerfile.controller Line 30 in cf23ecb
|
@timraymond We also disable CGO in the Make target to build the binary, though: Lines 148 to 149 in cf23ecb
|
Actually if I'm reading your link correctly |
# makefile
retina-binary: ## build the Retina binary
export CGO_ENABLED=0 && \
go generate ./... && \
go build -v -o $(RETINA_BUILD_DIR)/retina$(EXE_EXT) -gcflags="-dwarflocationlists=true" -ldflags "-X main.version=$(TAG) -X main.applicationInsightsID=$(APP_INSIGHTS_ID)" $(RETINA_DIR)/main.go |
395bbb5
to
ba334bf
Compare
Modifed the makefile to enable |
I'm afraid we need those .o files:
https://github.com/microsoft/retina/actions/runs/8429451457/job/23089687153?pr=129 |
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.
Thanks for the PR. Can you please remove the generated object files (not delete them from the repository, just the updated ones from your PR)? I think they don't need to be updated as part of the PR.
5beac78
to
e663f67
Compare
@nayihz can you please sign and sign-off your commits? |
e663f67
to
f71eade
Compare
Done. |
Signed-off-by: nayihz <[email protected]>
Head branch was pushed to by a user without write access
f71eade
to
332dc8b
Compare
Done. PTAL. |
looks good, thanks! |
Addresses issue #128