While getting started with Railway I tried to deploy go-httpbin the build step failed with the following in the Build logs:
Cache mount ID is not prefixed with cache key
I'm able to build and deploy to my local docker using this build script:
export CGO_ENABLED=0
export NIXPACKS_BUILD_CMD='go build -ldflags="-s -w" -o dist/go-httpbin ./cmd/go-httpbin'
export NIXPACKS_START_CMD='./dist/go-httpbin -port $PORT'
nixpacks build . --name go-httpbin --env NIXPACKS_BUILD_CMD NIXPACKS_START_CMD CGO_ENABLED
This is an attempt to recreate the same variables defined in the service, but deployment still fails.
Curious if this is a known issue with the go nixpacks provider and if there's a known workaround.
If you try and reproduce, I ran it locally with:
export PORT=8080
docker run -p $PORT:$PORT -e PORT go-httpbin