Skip to content

"git": executable file not found in $PATH #291

Open

Description

I'm trying to follow the guide Generating Common Contracts using Docker image

docker run --rm \
  -v ./web3-data:/data \
  gochain/web3 \
  generate contract erc20 --name "Test Tokens" --symbol TEST

But get the error

2024/05/17 09:29:12 Cloning OpenZeppelin v4.6.0...
ERROR: Cloning finished with error: exec: "git": executable file not found in $PATH

And we can check that git executable is missing in the Docker image

# Check sh
docker run -it --entrypoint /bin/sh gochain/web3 -c "which sh"
/bin/sh

# Check git
docker run -it --entrypoint /bin/sh gochain/web3 -c "which git"

# Check interactively
docker run -it --entrypoint /bin/sh gochain/web3
/app # which git
/app #
/app # git
/bin/sh: git: not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions