Skip to content
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

#250 Add -tags timetzdata to the go build for Windows #251

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

piotr-andruszkiewicz-wttech
Copy link
Contributor

fixes #250

Makefile Outdated
@@ -33,7 +33,7 @@ install:
other_build:
GOARCH=amd64 GOOS=darwin go build --ldflags "${.LD_FLAGS}" -o bin/aem.darwin ./cmd/aem
GOARCH=amd64 GOOS=linux go build --ldflags "${.LD_FLAGS}" -o bin/aem.linux ./cmd/aem
GOARCH=amd64 GOOS=windows go build --ldflags "${.LD_FLAGS}" -o bin/aem.exe ./cmd/aem
GOARCH=amd64 GOOS=windows go build -tags timetzdata --ldflags "${.LD_FLAGS}" -o bin/aem.exe ./cmd/aem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why only for windows?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and there is another place to cover for that - https://github.com/wttech/aemc/blob/main/.goreleaser.yaml#L23

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why only for windows?

Only windows lacks the tzdata library

and there is another place to cover for that - https://github.com/wttech/aemc/blob/main/.goreleaser.yaml#L23

Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding a separate build id.. Hmm maybe just that flag will be ignored when on non-windows OS will be built

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, adding this tag for all archs won't hurt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so align it as well in Makefile ;)

Copy link
Contributor

@krystian-panek-vmltech krystian-panek-vmltech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please apply fixes and explain

@krystian-panek-vmltech krystian-panek-vmltech merged commit c7701bb into main Aug 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknown time zone Etc/UTC
2 participants