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

fix(ci): aderyn target. #1073

Merged
merged 1 commit into from
Jul 16, 2024
Merged

fix(ci): aderyn target. #1073

merged 1 commit into from
Jul 16, 2024

Conversation

raulk
Copy link
Contributor

@raulk raulk commented Jul 16, 2024

Root cause:

  1. pnpm hoists dependencies to the workspace root and uses symlinks to link them under node_modules.
  2. Aderyn performs local compilation calling solc directly.
  3. Solc requires the target of symlinks to be whitelisted in --allow-paths.

Unfortunately:

  1. Aderyn doesn't support passing in allowed paths, nor does it pick them up from Foundry config.
  2. I wasn't able to mimic a standard node_modules layout with pnpm, after trying various hoisting and linking settings.

So we bite the bullet and perform an ordinary npm install to make Aderyn happy.

Also rewrote the check_aderyn.sh script to make it POSIX compliant, so I could run it on macOS to verify the fix.

pnpm hoists dependencies to the workspace root and uses symlinks
to link them under node_modules.

Aderyn performs local compilation calling solc directly. Solc
requires the target of symlinks to be whitelisted in allowed-paths.

Unfortunately, Aderyn doesn't support passing in allowed-paths, nor
does it pick them up from Foundry config.

I also wasn't able to mimic a standard node_modules layout with pnpm,
after trying various hoisting and linking settings.

So we bite the bullet and perform an ordinary npm install to make Aderyn happy.
@raulk raulk merged commit 2bccfb4 into main Jul 16, 2024
22 checks passed
@raulk raulk deleted the raulk/fix-ci-aderyn branch July 16, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant