Skip to content

Commit

Permalink
fix: Remove version from goreleaser since it doesn't seem to work rig…
Browse files Browse the repository at this point in the history
…ht now

Signed-off-by: Heck, Jerod <jerod.heck@lmco.com>
  • Loading branch information
jhlmco committed Dec 10, 2023
1 parent 543d497 commit bccd9dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .slsa-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ binary: blip-{{ .Os }}-{{ .Arch }}

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
ldflags:
- "-X main.Version={{ .Env.VERSION }}"
# - "-X main.Version={{ .Env.VERSION }}"
- "-X main.Commit={{ .Env.COMMIT }}"
- "-X main.CommitDate={{ .Env.COMMIT_DATE }}"
- "-X main.TreeState={{ .Env.TREE_STATE }}"
34 changes: 0 additions & 34 deletions .vscode/launch.json

This file was deleted.

5 changes: 4 additions & 1 deletion pkg/fetch/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ func fetchRequest(path string, file string, username string, password string) er
}

if username != "" && password != "" {
var bearer = "Bearer " + password
request.SetBasicAuth(username, password)
}

if username == "" && password != "" {
var bearer = "Bearer " + password
request.Header.Add("Authorization", bearer)
}

Expand Down

0 comments on commit bccd9dc

Please sign in to comment.