From 363aa900c609a190b3d1dd62f10e9dc2e97a06c7 Mon Sep 17 00:00:00 2001 From: amira1502 Date: Mon, 9 Dec 2024 12:49:15 +0100 Subject: [PATCH 1/4] update build command with no docker flag --- docs/2.build/2.smart-contracts/quickstart.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/2.build/2.smart-contracts/quickstart.md b/docs/2.build/2.smart-contracts/quickstart.md index 65f92b9679..aa12194890 100644 --- a/docs/2.build/2.smart-contracts/quickstart.md +++ b/docs/2.build/2.smart-contracts/quickstart.md @@ -262,8 +262,7 @@ Remember that you can create a named account through any wallet (i.e. [MyNearWal ## Build the Contract -When you are ready to create a build of the contract run a one-line command depending on your environment. - +If you encounter issues with Docker or prefer not to use Docker for building contracts, you can pass the --no-docker flag to certain commands (where applicable). @@ -271,12 +270,19 @@ When you are ready to create a build of the contract run a one-line command depe npm run build ``` + ```bash + npm run build --no-docker + ``` + ```bash cargo near build + ``` + ```bash + cargo near build --no-docker ``` From 634561ee4a324f1a874c56e0ab8f72328c5af7cf Mon Sep 17 00:00:00 2001 From: amira1502 Date: Mon, 9 Dec 2024 22:01:09 +0100 Subject: [PATCH 2/4] add no docker flag to build command --- docs/2.build/2.smart-contracts/quickstart.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/2.build/2.smart-contracts/quickstart.md b/docs/2.build/2.smart-contracts/quickstart.md index aa12194890..d6ca139d4f 100644 --- a/docs/2.build/2.smart-contracts/quickstart.md +++ b/docs/2.build/2.smart-contracts/quickstart.md @@ -269,6 +269,7 @@ If you encounter issues with Docker or prefer not to use Docker for building con ```bash npm run build ``` + Or ```bash npm run build --no-docker @@ -281,8 +282,10 @@ If you encounter issues with Docker or prefer not to use Docker for building con ```bash cargo near build ``` - ```bash - cargo near build --no-docker + Or + + ```bash + cargo near build --no-docker ``` From bfbe80017cc32d73fe1cc0c45fe7a13d1a596bfc Mon Sep 17 00:00:00 2001 From: amira1502 Date: Tue, 10 Dec 2024 15:08:18 +0100 Subject: [PATCH 3/4] add warning to test account creation --- docs/2.build/2.smart-contracts/quickstart.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/2.build/2.smart-contracts/quickstart.md b/docs/2.build/2.smart-contracts/quickstart.md index d6ca139d4f..713f0aa0bf 100644 --- a/docs/2.build/2.smart-contracts/quickstart.md +++ b/docs/2.build/2.smart-contracts/quickstart.md @@ -258,6 +258,13 @@ Remember that you can create a named account through any wallet (i.e. [MyNearWal ::: +:::warning + +When running the near account create-account command in a headless Linux environment (e.g., WSL), the `save-to-keychain` option may fail due to platform limitations. Use `save-to-legacy-keychain` instead of `save-to-keychain` to ensure compatibility. + +::: + + --- ## Build the Contract From f375c46f98724b0fc59b9c996e29124ea9f7e434 Mon Sep 17 00:00:00 2001 From: Guille Date: Wed, 11 Dec 2024 12:07:41 +0100 Subject: [PATCH 4/4] Apply suggestions from code review --- docs/2.build/2.smart-contracts/quickstart.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/2.build/2.smart-contracts/quickstart.md b/docs/2.build/2.smart-contracts/quickstart.md index 713f0aa0bf..216555300b 100644 --- a/docs/2.build/2.smart-contracts/quickstart.md +++ b/docs/2.build/2.smart-contracts/quickstart.md @@ -269,18 +269,19 @@ When running the near account create-account command in a headless Linux environ ## Build the Contract -If you encounter issues with Docker or prefer not to use Docker for building contracts, you can pass the --no-docker flag to certain commands (where applicable). +When you are ready to create a build of the contract run a one-line command depending on your environment. ```bash npm run build ``` - Or +:::info + +If you encounter issues with Docker you can use the `--no-docker` flag to skip creating a reproducible build + +::: - ```bash - npm run build --no-docker - ```