Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to run go generate with executable file in the same folder

I have the executable file in the same folder as where go generate command is written

when I run the command it gives an error

 executable file not found in $PATH

But I have the executable in the same folder See image below

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

Currently I am running

go:generate convert

How to make go:generate look for binary in the same folder

>Solution :

Try:

go:generate ./convert

Your executable convert is not in your system’s path, so you need to give it a relative (as in the above case) or an absolute path for go generate or any sub-system to execute it.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading