From 43515086cc89ea268c494906f0bc45af05b3e56c Mon Sep 17 00:00:00 2001 From: Mark Phelps <209477+markphelps@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:29:45 -0500 Subject: [PATCH] chore(rust): fix push pipeline (#51) --- .gitignore | 3 ++- build/main.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c9eb751..0fca033 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ target/ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html Cargo.lock -.vscode/ \ No newline at end of file +.vscode/ +.envrc diff --git a/build/main.go b/build/main.go index 1058e3e..ba0b7b7 100644 --- a/build/main.go +++ b/build/main.go @@ -138,7 +138,7 @@ func rustBuild(ctx context.Context, client *dagger.Client, hostDirectory *dagger cargoAPIKeySecret := client.SetSecret("rust-api-key", os.Getenv("CRATES_TOKEN")) _, err = container.WithSecretVariable("CRATES_TOKEN", cargoAPIKeySecret). - WithExec([]string{"cargo", "publish", "--token", "${CRATES_TOKEN}"}). + WithExec([]string{"sh", "-c", "cargo publish --token $CRATES_TOKEN"}). Sync(ctx) return err