From d17cda95f997c71c476a33ce08fc33882fbe14c7 Mon Sep 17 00:00:00 2001 From: Jared Lunde Date: Mon, 2 Dec 2024 13:37:54 -0800 Subject: [PATCH] chore: fix lints --- docs/pages/docs/providers/go.md | 1 + src/providers/go.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/pages/docs/providers/go.md b/docs/pages/docs/providers/go.md index c49a2737f..b4bc51be9 100644 --- a/docs/pages/docs/providers/go.md +++ b/docs/pages/docs/providers/go.md @@ -32,6 +32,7 @@ go get ``` ## Build + If your project has multiple binaries, you can specify which one to run with the `NIXPACKS_GO_BIN` environment variable. Otherwise, the first binary found in the project's `cmd` directory the in the project's root directory will be used. diff --git a/src/providers/go.rs b/src/providers/go.rs index 5459e2e1f..3f490586c 100644 --- a/src/providers/go.rs +++ b/src/providers/go.rs @@ -82,7 +82,7 @@ impl Provider for GolangProvider { .and_then(|path| { path.file_name() .and_then(|os_str| os_str.to_str()) - .map(|name| format!("go build -o {BINARY_NAME} ./cmd/{}", name)) + .map(|name| format!("go build -o {BINARY_NAME} ./cmd/{name}")) }) } else if app.includes_file("go.mod") { Some(format!("go build -o {BINARY_NAME}"))