Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ jobs:
# mandatory
-Dsonar.projectVersion=$SEMVER
-Dsonar.go.coverage.reportPaths=/github/workspace/.coverage/out
-X
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ OWNER := dnitsch
NAME := configmanager
GIT_TAG := "1.18.0"
VERSION := "v$(GIT_TAG)"
# VERSION := "$(shell git describe --tags --abbrev=0)"
REVISION := $(shell git rev-parse --short HEAD)

LDFLAGS := -ldflags="-s -w -X \"github.com/$(OWNER)/$(NAME)/cmd/configmanager.Version=$(VERSION)\" -X \"github.com/$(OWNER)/$(NAME)/cmd/configmanager.Revision=$(REVISION)\" -extldflags -static"
Expand Down Expand Up @@ -37,12 +36,12 @@ clean:

cross-build:
for os in darwin linux windows; do \
GOOS=$$os CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$(NAME)-$$os ./cmd; \
GOOS=$$os CGO_ENABLED=0 go build -mod=readonly -buildvcs=false $(LDFLAGS) -o dist/$(NAME)-$$os ./cmd; \
done

build-mac:
for os in darwin; do \
GOOS=$$os CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$(NAME)-$$os ./cmd; \
GOOS=$$os CGO_ENABLED=0 go build -mod=readonly -buildvcs=false $(LDFLAGS) -o dist/$(NAME)-$$os ./cmd; \
done

release:
Expand Down
2 changes: 1 addition & 1 deletion pkg/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func (c *GenVars) FlushToFile(w io.Writer, out []string) error {
return c.flushToFile(w, listToString(c.outString))
}

// StrToFile
// StrToFile writes a provided string to the writer
func (c *GenVars) StrToFile(w io.Writer, str string) error {
return c.flushToFile(w, str)
}
Expand Down