journey icon indicating copy to clipboard operation
journey copied to clipboard

Building from source no longer works since golang 1.16

Open mpnordland opened this issue 2 years ago • 1 comments

The building from source instructions no longer work as of golang 1.16.

While the journey executable can be built using go install, you don't get the necessary front end assets for the admin interface.

Simply cloning the repository and building using go build doesn't work because this project has not been updated to use the new modules system introduced in 1.11, made default in 1.16 and mandated in 1.18.

I was not able to determine if there was a combination of build flags that would allow it to work.

mpnordland avatar Mar 30 '22 15:03 mpnordland

In case it helps someone, I've just built from rkuris fork. In the readme of my fork I've added some instructions on how to build for Windows:

  • go get github.com/Drizin/journey
  • cd %GOPATH%\src\github.com\Drizin\journey
  • git submodule update --init --recursive
  • go get -u
  • go env -w GO111MODULE=auto
  • go env -w CGO_ENABLED=1
  • go build

Drizin avatar Feb 25 '23 01:02 Drizin