Skip to content

Commit

Permalink
finalize update check URL
Browse files Browse the repository at this point in the history
  • Loading branch information
wagoodman committed Jul 27, 2020
1 parent 19eadde commit 06f8355
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ release: clean-dist ## Build and publish final binaries and packages
-e AWS_SECRET_ACCESS_KEY=${TOOLBOX_AWS_SECRET_ACCESS_KEY} \
-v $(shell pwd)/$(DISTDIR)/:/distmount \
amazon/aws-cli --debug \
s3 cp /distmount/VERSION s3://anchore-toolbox/$(BIN)/releases/latest/VERSION
s3 cp /distmount/VERSION s3://toolbox-data.anchore.io/$(BIN)/releases/latest/VERSION

.PHONY: clean
clean: clean-dist clean-snapshot ## Remove previous builds and result reports
Expand Down
2 changes: 1 addition & 1 deletion internal/constants.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package internal

// note: must be a single word, all lowercase
// note: do not change this
const ApplicationName = "syft"
6 changes: 3 additions & 3 deletions internal/version/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
"strings"

hashiVersion "github.com/anchore/go-version"
"github.com/anchore/syft/internal"
)

var latestAppVersionURL = struct {
host string
path string
}{
// TODO: set me to release host/path before release
host: "https://anchore.io",
path: "/syft/releases/latest/VERSION",
host: "https://toolbox-data.anchore.io",
path: fmt.Sprintf("/%s/releases/latest/VERSION", internal.ApplicationName),
}

func IsUpdateAvailable() (bool, string, error) {
Expand Down

0 comments on commit 06f8355

Please sign in to comment.