Cache mount ID is not prefixed with cache key
under review
Jeff
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
Brev Patterson
I had a service up and running wonderfully for a few days, but suddenly now every build fails immediately, with that same error message as the only entry in the Build Logs:
Cache mount ID is not prefixed with cache key
No idea what I changed, but now I can't get the service back working again. I've tried deleting and re-creating the service, but still get the error.
UPDATE:
https://discord.com/channels/713503345364697088/1012419758039248976
Angelo Saraceno
under review