Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx hardhat gobind failed with error (total length of command line and environment variables exceeds limit) #12

Closed
daniel-fi opened this issue Aug 24, 2023 · 2 comments · Fixed by #17
Assignees
Labels
bug Something isn't working

Comments

@daniel-fi
Copy link

npx hardhat gobind

An unexpected error occurred:

Error in plugin @dlsl/hardhat-gobind: total length of command line and environment variables exceeds limit

Need to merge process.env?

go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);

@chk0912
Copy link

chk0912 commented Sep 3, 2023

Same situation here.

This works:

npx hardhat gobind --no-compile

This setup does not work:

// package.json file
{
  ...
  "scripts": {
    "gobind": "npx hardhat gobind --no-compile"
  },
  ...
}
npm run gobind

Error:

> npx hardhat gobind --no-compile

Error in plugin @dlsl/hardhat-gobind: total length of command line and environment variables exceeds limit

For more info run Hardhat with --show-stack-traces

@nikicat
Copy link

nikicat commented Oct 5, 2023

Your environment is too long (see golang/go#31105). Try to clean some of your env before executing npx hardhat gobind

@Arvolear Arvolear added the bug Something isn't working label Mar 7, 2024
@KyrylR KyrylR mentioned this issue Mar 8, 2024
@Arvolear Arvolear linked a pull request Mar 9, 2024 that will close this issue
@Arvolear Arvolear closed this as completed Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants