making linux program available in nixpacks
Hi,
I want to run a golang app on railway. Within this app i use the following dependency https://github.com/sajari/docconv
This tool has some dependencies by itself. I try to install these deps using nixpacks:
When i run it builds correctly and also the which command shows that it is aware of the pdftotext tool, as well as it is sitting in the $PATH !
When i then run the golang app and try to use the pdftotext tool under the hood like i would do it locally (where it works) it spits out that it cant find the tool in the PATH:
What am I doing wrong? Is there any nixpacks trick or config var I need to set before that works like intended?
thx in advance!
id: 36ee9888-697b-488f-8b20-0269418eaf48
(private project though)
relevant build output:
GitHub
GitHub - sajari/docconv: Converts PDF, DOC, DOCX, XML, HTML, RTF, e...
Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text - GitHub - sajari/docconv: Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text
4 Replies
Project ID:
36ee9888-697b-488f-8b20-0269418eaf48
nixpacks is likely trying to run your go app in a separate slim image, to disable this set a service variable
CGO_ENABLED
= 1
that helped a lot! Thank you kindly!!
no problem 🙂