-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from 0xPolygonHermez/edu/remove_private_token
Update the documentation links in the README.md and remove the requir…
- Loading branch information
Showing
10 changed files
with
24 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# Introduction | ||
|
||
WIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ impl BuildToolchainCmd { | |
pub fn run(&self) -> Result<()> { | ||
println!("Building toolchain..."); | ||
// Get enviroment variables. | ||
let zisk_token = std::env::var("ZISK_TOKEN"); | ||
let build_dir = std::env::var("ZISK_BUILD_DIR"); | ||
let rust_dir = match build_dir { | ||
Ok(build_dir) => { | ||
|
@@ -26,20 +25,12 @@ impl BuildToolchainCmd { | |
} | ||
|
||
println!("No ZISK_BUILD_DIR detected, cloning rust."); | ||
let repo_url = match zisk_token { | ||
Ok(zisk_token) => { | ||
println!("Detected ZISK_TOKEN, using it to clone rust."); | ||
format!("https://{}@github.com/0xPolygonHermez/rust", zisk_token) | ||
} | ||
Err(_) => { | ||
println!("No ZISK_TOKEN detected. If you get throttled by Github, set it to bypass the rate limit."); | ||
"ssh://[email protected]/0xPolygonHermez/rust".to_string() | ||
} | ||
}; | ||
let repo_url = "https://{}@github.com/0xPolygonHermez/rust"; | ||
|
||
Command::new("git") | ||
.args([ | ||
"clone", | ||
&repo_url, | ||
repo_url, | ||
"--depth=1", | ||
"--single-branch", | ||
"--branch=zisk", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,7 @@ pub struct NewCmd { | |
impl NewCmd { | ||
pub fn run(&self) -> Result<()> { | ||
let root = Path::new(&self.name); | ||
let zisk_token = std::env::var("ZISK_TOKEN"); | ||
let repo_url = match zisk_token { | ||
Ok(zisk_token) => { | ||
println!("Detected ZISK_TOKEN, using it to clone zisk_template"); | ||
format!("https://{}@github.com/0xPolygonHermez/zisk_template", zisk_token) | ||
} | ||
Err(_) => { | ||
println!("No ZISK_TOKEN detected. If you get throttled by Github, set it to bypass the rate limit."); | ||
"ssh://[email protected]/0xPolygonHermez/zisk_template".to_string() | ||
} | ||
}; | ||
let repo_url = "https://{}@github.com/0xPolygonHermez/zisk_template"; | ||
// Create the root directory if it doesn't exist. | ||
if !root.exists() { | ||
fs::create_dir(&self.name)?; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters