mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
15 lines
599 B
Bash
Executable File
15 lines
599 B
Bash
Executable File
#!/bin/bash
|
|
# Update all imports from github.com/luxfi/evm/ to github.com/luxfi/evm/
|
|
# Also update node imports to use v2
|
|
|
|
echo "Updating EVM imports to v2..."
|
|
|
|
# Find all Go files and update imports
|
|
find . -name "*.go" -type f -not -path "./vendor/*" -not -path "./.git/*" | while read -r file; do
|
|
# Update imports from github.com/luxfi/evm/ to github.com/luxfi/evm/
|
|
sed -i '' 's|"github.com/luxfi/evm/|"github.com/luxfi/evm/|g' "$file"
|
|
# Also update node imports to v2
|
|
sed -i '' 's|"github.com/luxfi/node/|"github.com/luxfi/node/|g' "$file"
|
|
done
|
|
|
|
echo "EVM import update complete!" |