Skip to content

Commit

Permalink
chore: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredLunde committed Dec 2, 2024
1 parent d642c7f commit d17cda9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pages/docs/providers/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/providers/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))
Expand Down

0 comments on commit d17cda9

Please sign in to comment.