You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've also tried running make unit-test which hangs forever with the following output:
root@abae3c8581c6:~/go/src/github.com/dokku/dokku# make unit-tests
make[1]: Entering directory '/root/go/src/github.com/dokku/dokku'
running go unit tests...
docker run --rm \
-e DOKKU_ROOT=/home/dokku \
-e GO111MODULE=on \
-v $PWD:/go/src/github.com/dokku/dokku \
-w /go/src/github.com/dokku/dokku \
golang:1.23.0 \
bash -c "cd plugins/common && go get github.com/onsi/gomega && go test -v -p 1 -race -mod=readonly " || exit $?
docker: Error response from daemon: Mounts denied:
The path /root/go/src/github.com/dokku/dokku is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
re: the pack usage, I think whats happening is that dokku internally switches to pack if you're on arm64 (unless you've force allowed herokuish). I should probably audit all the unit tests to switch them to the null buildpack where possible, which should allow usage of herokuish in tests.
Separately, the golang unit-tests probably should run outside of isolated docker containers when executed in the devcontainer environment. We run them in docker to ensure we get a consistent golang environment (something necessary when running on a VM), but the devcontainer already has the correct golang, so thats not necessary.
Hi @IV-R. While the instructions there are overall helpful and I don't want to discourage you from providing support, this sounds a lot like ChatGPT. It's not super useful in this case - we link to instructions on installing pack here but also a PR installing pack directly in the Dockerfile would probably be better than mal-formatted instructions.
Description of problem
I'm about to make my first small contribution to Dokku and tried running the test suite locally on a fresh clone first.
Unfortunately, test fail with "No pack binary found".
Steps to reproduce
devcontainers.json
bats tests/unit/cron.bats
The test suite will fail with the following output:
dokku report $APP_NAME
n/a
Additional information
Output of failing commands after running: dokku trace:off
No response
Output of failing commands after running: dokku trace:on
No response
The text was updated successfully, but these errors were encountered: