hundreds-market-43319
10/31/2022, 5:06 PMgit init .
git add .
git commit -am "Initial"
cargo shuttle deploy ---> Deployment crashed.
cargo shuttle logs MY-LOG --->
2022-10-31T18:01:24.360919797Z INFO Entering queued state
2022-10-31T18:01:24.363976611Z INFO Entering building state
2022-10-31T18:01:24.383713394Z INFO shuttle_deployer::deployment::queue: Extracting received data
2022-10-31T18:01:24.440633930Z INFO shuttle_deployer::deployment::queue: Building deployment
2022-10-31T18:01:24.447039691Z INFO Entering crashed state
2022-10-31T18:01:24.465544314Z ERROR {error="Build error: failed to read `/opt/shuttle/shuttle-builds/rutexws/Cargo.toml`"} shuttle_deployer::deployment::queue: service build encountered an error
if im deleting .git folder from project, i am able to deploy project again.kind-area-3810
10/31/2022, 10:35 PMcargo package to package users crates before we send them to the build server, and this comes with some rules (ref ). My guess is that this particular flow causes the files to be ignored by cargo package, but I'm not sure why yet. I'll take a closer look in the morning and see if I can reproduce this.hundreds-market-43319
11/01/2022, 6:32 AMstocky-kangaroo-53672
11/01/2022, 6:55 AMcargo package --list with and without the .git folder?hundreds-market-43319
11/01/2022, 8:25 AMwarning: manifest has no description, license or license-file.
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
Cargo.toml
Cargo.toml.orig
public\index.html
rrutexws.code-workspace
src\StellarObjectImpl.rs
src\WebHandlerImpl.rs
src\WebsocketImpl.rs
src\lib.rs
src\test.rs
After git init .
warning: manifest has no description, license or license-file.
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
error: 8 files in the working directory contain changes that were not yet committed into git:
Cargo.toml
public\index.html
rrutexws.code-workspace
src\lib.rs
src\StellarObjectImpl.rs
src\test.rs
src\WebHandlerImpl.rs
src\WebsocketImpl.rs
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
after
git add .
git commit -am "commit"
warning: manifest has no description, license or license-file.
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
.cargo_vcs_info.json
.gitignore
.vscode/settings.json
Cargo.toml
Cargo.toml.orig
public/index.html
rrutexws.code-workspace
src/StellarObjectImpl.rs
src/WebHandlerImpl.rs
src/WebsocketImpl.rs
src/lib.rs
src/test.rshundreds-market-43319
11/01/2022, 8:44 AM--allow-dirty to the deploy process?kind-area-3810
11/01/2022, 9:48 AM--allow-dirty is already available as an arg to deploy: cargo shuttle deploy --allow-dirtykind-area-3810
11/01/2022, 9:56 AMkind-area-3810
11/01/2022, 10:07 AMkind-area-3810
11/01/2022, 10:07 AMstocky-kangaroo-53672
11/01/2022, 10:29 AMcargo package. Then manually extract the file under target/package/*.crate and see if the Cargo.toml file is as the original?hundreds-market-43319
11/01/2022, 10:30 AMstocky-kangaroo-53672
11/01/2022, 10:31 AMhundreds-market-43319
11/01/2022, 10:31 AMstocky-kangaroo-53672
11/01/2022, 10:31 AMgzip -d to deflate ithundreds-market-43319
11/01/2022, 10:39 AMhundreds-market-43319
11/01/2022, 10:46 AMstocky-kangaroo-53672
11/01/2022, 11:06 AM*.crate file like after a cargo shuttle deploy?hundreds-market-43319
11/01/2022, 11:12 AMhundreds-market-43319
11/01/2022, 11:13 AMstocky-kangaroo-53672
11/01/2022, 11:16 AMSecrets.toml file in the repo with some dummy content and post the effects on *.crate?hundreds-market-43319
11/01/2022, 11:17 AMhundreds-market-43319
11/01/2022, 11:24 AMstocky-kangaroo-53672
11/01/2022, 11:25 AMcargo shuttle deploy? Ie the line starting with Archivinghundreds-market-43319
11/01/2022, 11:26 AMwarning: manifest has no description, license or license-file.
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
warning: No (git) Cargo.toml found at `\\?\C:\dev_one\rrutexws\Cargo.toml` in workdir `C:/dev_one/rrutexws/`
Packaging rutexws v0.1.0 (C:\dev_one\rrutexws)
2022-11-01T12:25:51.895274049Z INFO Entering queued state
2022-11-01T12:25:51.896627462Z INFO Entering building state
2022-11-01T12:25:51.952055012Z INFO shuttle_deployer::deployment::queue: Extracting received data
Deployment crashed
Run the following for more details
cargo shuttle logs 17e30a21-384a-458e-9eb1-6a9aa2b634bestocky-kangaroo-53672
11/01/2022, 11:28 AMNo (git) Cargo.toml found at '\\?\C:\ thing again?hundreds-market-43319
11/01/2022, 11:30 AMhundreds-market-43319
11/01/2022, 11:30 AMkind-area-3810
11/01/2022, 11:31 AMstocky-kangaroo-53672
11/01/2022, 11:51 AMstocky-kangaroo-53672
11/01/2022, 11:53 AMcargo package also jump from the "No (git)" warning to the "Packaging" line?stocky-kangaroo-53672
11/01/2022, 11:53 AMhundreds-market-43319
11/01/2022, 11:57 AMwarning: manifest has no description, license or license-file.
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info. and after that line begins compilinghundreds-market-43319
11/01/2022, 12:04 PMstocky-kangaroo-53672
11/01/2022, 12:04 PMcargo version?hundreds-market-43319
11/01/2022, 12:05 PMcargo 1.64.0 (387270bc7 2022-09-16)stocky-kangaroo-53672
11/01/2022, 12:13 PM.crate archive. So I've hit a wall trying to figure out what is happening here...stocky-kangaroo-53672
11/01/2022, 12:13 PMhundreds-market-43319
11/01/2022, 12:16 PMhundreds-market-43319
11/01/2022, 2:40 PMworking_directory fixes issue...hundreds-market-43319
11/01/2022, 2:41 PMkind-area-3810
11/01/2022, 2:44 PMcargo shuttle deploy --working-directoryhundreds-market-43319
11/01/2022, 2:46 PMhundreds-market-43319
11/01/2022, 2:46 PMhundreds-market-43319
11/01/2022, 2:48 PM[cargo-shuttle\src\lib.rs:438] &working_directory = "\\\\?\\C:\\dev_one\\rrutexws"
[cargo-shuttle\src\lib.rs:442] &working_directory = "C:\\dev_one\\rrutexws"hundreds-market-43319
11/01/2022, 2:49 PMkind-area-3810
11/01/2022, 3:01 PMworking_directory.join("Cargo.toml")?hundreds-market-43319
11/01/2022, 3:01 PMkind-area-3810
11/01/2022, 3:02 PM--working-directory flag.hundreds-market-43319
11/01/2022, 3:06 PM\\\\?\\ ) it generates correct crate, with valid content. I guess that was the issue.
working_directory.join("Cargo.toml") produces valid path: [cargo-shuttle\src\lib.rs:441] &path = "C:\\dev_one\\rrutexws\\Cargo.toml"hundreds-market-43319
11/01/2022, 3:07 PMhundreds-market-43319
11/01/2022, 3:08 PMhundreds-market-43319
11/01/2022, 3:16 PMkind-area-3810
11/01/2022, 4:44 PMhundreds-market-43319
11/01/2022, 4:55 PMhundreds-market-43319
11/01/2022, 4:57 PMhundreds-market-43319
11/01/2022, 4:59 PMkind-area-3810
11/01/2022, 5:15 PMstocky-kangaroo-53672
11/02/2022, 10:27 AMcanonicalize, is it broken again?
https://doc.rust-lang.org/std/fs/fn.canonicalize.htmlhundreds-market-43319
11/02/2022, 2:33 PMcanonicalize transforms hardcoded traditional path into long styled path back and breaks everything again.stocky-kangaroo-53672
11/02/2022, 2:41 PMhundreds-market-43319
11/02/2022, 3:12 PMhundreds-market-43319
11/02/2022, 3:17 PMstocky-kangaroo-53672
11/03/2022, 5:09 AMhundreds-market-43319
11/03/2022, 10:35 AMhundreds-market-43319
11/03/2022, 11:17 AMhundreds-market-43319
11/03/2022, 11:17 AMstocky-kangaroo-53672
11/03/2022, 11:26 AMcanonicalize with the code targeting windows? Ie removing the cfg altogetherhundreds-market-43319
11/03/2022, 11:27 AM