Breaking down at calling superpath with undefined scope
CavHack opened this issue · comments
Write a shell script that gets rid of duplicates in a root branch or leaf of
github.com/YosiSF/EinsteinDB
#!/bin/bash
git clone https://github.com/YosiSF/EinsteinDB
cd EinsteinDB
git checkout root
git branch -D leaf
git checkout -b leaf
git branch -D master
git checkout -b master
git remote add origin https://github.com/YosiSF/EinsteinDB.git
git push -u origin master
git push -u origin leaf
#!fix go mod tidy
go mod tidy
#!check if there are any duplicates
if git ls-files -s | uniq -d >/dev/null; then
echo "Duplicate files found!"
exit 1
fi
echo "No duplicates found!"
exit 0
!#python init
import os
os.system("git clone https://github.com/YosiSF/EinsteinDB")
os.system("cd EinsteinDB")
os.system("git checkout root")
os.system("git branch -D leaf")
os.system("git checkout -b leaf")
os.system("git branch -D master")
os.system("git checkout -b master")
os.system('git remote add origin https://github.com/YosiSF/EinsteinDB.git')
os.system("git push -u origin master")
os.system("git push -u origin leaf")
#!fix go mod tidy
os.system("go mod tidy")
#!check if there are any duplicates
if os.system("git ls-files -s | uniq -d >/dev/null") == 1:
print("Duplicate files found!")
exit(1)
print("No duplicates found!")
exit(0)
!#check precompikation
if ! type go > /dev/null; then
echo "You need to install Go to run this script"
exit 1
fi
!#END
#!check compiler
if [ "$(go version | cut -d ' ' -f 3)" != "go1.13.4" ]; then
echo "You need to use Go 1.13.4 to compile this code"
exit 1
fi
!#rustc contig for this fokder
rustc +nightly --target wasm32-unknown-unknown -O -Z debug
!#GOOS=js GOARCH=wasm go build -o main.wasm
GOOS=js GOARCH=wasm go build -o main.wasm
!#wasm-gc main.wasm -o main.gc.wasm
wasm-gc main.wasm -o main.gc.wasm
!#go run
go run .
git ls-files -s | sort -k2,2 | uniq -f1 | cut -f2 | xargs -I{} git checkout -- {}