armada icon indicating copy to clipboard operation
armada copied to clipboard

build fails on linux if TESTS_IN_DOCKER isn't set

Open andrewpcone opened this issue 3 years ago • 1 comments

make proto should work out of the box. Right now it doesn't, because TESTS_IN_DOCKER isn't set, which makes GO_TEST_CMD empty, which causes swagger and other commands to run on the host, rather than in docker. If the user's PATH doesn't include ~/go/bin or other $GOPATH/bin, then swagger fails.

I propose that we build exclusively in docker by using $GO_CMD in front of all the make proto commands instead of relying on the system go installation.

andrewpcone avatar Jul 07 '22 18:07 andrewpcone

alternatively we can have the makefile call, for example, `go env GOPATH`/swagger or similar

andrewpcone avatar Jul 07 '22 18:07 andrewpcone

Could someone reproduce this? Not sure if it’s fixed or not.

kannon92 avatar Mar 01 '23 12:03 kannon92

Since we now use mage, this isn't needed. Closing

Sharpz7 avatar Aug 21 '23 04:08 Sharpz7