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

Air not running with --tags dynamic (Apple M1) #352

Closed
themiken opened this issue Nov 15, 2022 · 4 comments
Closed

Air not running with --tags dynamic (Apple M1) #352

themiken opened this issue Nov 15, 2022 · 4 comments
Assignees

Comments

@themiken
Copy link

themiken commented Nov 15, 2022

I'm trying to start a project with Kafka library that in my Apple M1 doesnt run correctly. In a confluent issue confluentinc/confluent-kafka-go#591 suggests run go build --tags dynamic but when i run this code with air air --build.cmd "go build --tags dynamic throws me following error

Screen Shot 2022-11-14 at 7 16 59 PM

Screen Shot 2022-11-14 at 7 17 22 PM

@themiken themiken changed the title Air not running with --tags dynamic Air not running with --tags dynamic (Apple M1) Nov 15, 2022
@xiantang xiantang self-assigned this Nov 15, 2022
@xiantang
Copy link
Collaborator

if u just use command line to run go build --tags dynamic, is this correct?

@themiken
Copy link
Author

if i just run go build --tags dynamic and then run the binary works fine.

Screen Shot 2022-11-15 at 8 46 25 AM

Screen Shot 2022-11-15 at 8 46 49 AM

Thank you for supporting!!!

@xiantang
Copy link
Collaborator

can u run this:
10:20 ➜ ~ /bin/sh
sh-3.2$ go version
and compare version with commandline

@themiken
Copy link
Author

themiken commented Feb 16, 2023

Resuming this post.

I solved the problem running this command

air --build.cmd "go build --tags dynamic -o bin/api main.go" --build.bin "./bin/api

Previously I follow this post (for this project I use confluent-kafka)

confluentinc/confluent-kafka-go#591

go version go1.18 darwin/arm64

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

No branches or pull requests

2 participants