[Application Development] <Title> #860
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Did you check the documentation?
Documentation Feedback (Optional)
Hi Optimism team/community,
I'm trying to run op-deployer apply using the official binary release of op-deployer v0.3.1 on Linux.
Despite setting the following environment variables:
export OP_DEPLOYER_CACHE_DIR=$(pwd)/op-cache
export OP_CACHE_DIR=$(pwd)/op-cache
and ensuring the directory structure exists:
./op-cache/
├── artifacts
│ ├── l1
│ │ └── genesis.json
│ ├── l2
│ │ └── genesis.json
│ └── tmp
I keep getting this error:
pgsql
복사
편집
Application failed: failed to download L1 artifacts: failed to ensure cache directory: mkdir : no such file or directory
I also used strace to trace the failing syscall, and saw that the mkdir call is attempting to create an empty path (i.e., mkdir "") which suggests that the environment variables are not being respected at all.
To debug further, I ran:
curl -s https://raw.githubusercontent.com/ethereum-optimism/optimism/op-deployer/v0.3.1/packages/op-deployer/fs/cache.go | grep -i cache_dir
→ and found no reference to OP_DEPLOYER_CACHE_DIR or OP_CACHE_DIR.
❓ My question:
Is v0.3.1 supposed to support OP_DEPLOYER_CACHE_DIR or any way to override the default cache path?
If not, is it safe to assume that only builds from main or newer versions (e.g. v0.3.3+) support this?
Is there a workaround for v0.3.1 other than creating /tmp/op-deployer-cache/artifacts/l1 manually?
Would you recommend using main branch instead of a versioned tag for better CLI support?
💡 Additional Context:
OS: Ubuntu 22.04
Shell: zsh
op-deployer version: v0.3.1 (from GitHub Releases)
Local test setup for custom L2 chain using op-node, op-geth, deployer
Thanks in advance for your guidance!
What type of issue are you experiencing?
Issue Description
up
Steps to Reproduce
up
Are you using a specific library or SDK?
Are you using the latest version of the library/SDK?
Environment Details
No response
Troubleshooting Attempts
No response
What type of support do you need?
Additional Information
No response
Feedback
No response
Beta Was this translation helpful? Give feedback.
All reactions