terminalstatic / go-xsd-validate

Xsd validation for go based on libxml2
MIT License
72 stars 18 forks source link

Getting issue in installation #16

Closed nikhilbhavsar121 closed 11 months ago

nikhilbhavsar121 commented 11 months ago

Hello, I'm tring to compare xsd with xml but getting error while installation. Can you please suggest the solution.

Before image After go get image In debug image

terminalstatic commented 11 months ago

Probably install C build tools, pkg-config in particular and/or put it into the PATH variable.

nikhilbhavsar121 commented 11 months ago

Thanks..

sudo apt-get update sudo apt-get install pkg-config After this two cmd in debugger is working and code is working fine.

But in production docker failing image

this is docker file image

it's failing After this cmd RUN cd $APP_DIR && CGO_ENABLED=0 go build -ldflags '-d -w -s' -v

Please suggest any change required in docker file or in above cmd

terminalstatic commented 11 months ago

Sorry I really can't help you out there. I'd guess CGO_ENABLED=0 is probably not such a good idea when using cgo and an external c library, but in the end you'd have to figure this out yourself for your specific use case.