Skip to content

Commit

Permalink
Change name to DEBRICKED_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Nov 21, 2024
1 parent 9ba411d commit 79f27e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/callgraph/language/java/soot_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (sh SootHandler) downloadCompressedSootWrapper(fs ioFs.IFileSystem, zipFile
version,
".zip",
}, "")
fmt.Println("URL=", fullURLFile)

client := http.Client{
CheckRedirect: func(r *http.Request, via []*http.Request) error {
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/callgraph/callgraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func RunE(callgraph callgraph.IGenerator) func(_ *cobra.Command, args []string)

configs := []conf.IConfig{}
version := viper.GetString("version")
fmt.Println("DEBRICKED_VERSION=", version)

for _, language := range languages {
configs = append(configs, conf.NewConfig(language, args, map[string]string{}, !buildDisabled, languageMap[language], version))
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if ! command -v git &> /dev/null
then
echo -e "Failed to find git, thus also the version. Version will be set to v0.0.0"
fi
version=${VERSION:-$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)}
version=${DEBRICKED_VERSION:-$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)}
ldFlags="-X main.version=${version}"
go install -ldflags "${ldFlags}" ./cmd/debricked
go generate -v -x ./cmd/debricked
Expand Down

0 comments on commit 79f27e0

Please sign in to comment.