Skip to content

Commit 9fefb71

Browse files
Merge branch 'main' into vault-cli
# Conflicts: # pkg/content_manager.go # pkg/package_manager.go
2 parents 98b4fcc + c7701bb commit 9fefb71

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.goreleaser.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ builds:
1919
- linux
2020
- windows
2121
- darwin
22+
tags:
23+
- timetzdata
2224
ldflags:
2325
- "-s -w -X main.appVersion={{ .Version }} -X main.appCommit={{ .Commit }} -X main.appCommitDate={{.CommitDate}}"
2426

Makefile

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.GIT_COMMIT_DATE=$(shell git log -1 --date=format:'%Y-%m-%dT%H:%M:%S' --format=%cd)
33
.GIT_VERSION=$(shell git describe --tags 2>/dev/null || echo "$(.GIT_COMMIT)")
44
.LD_FLAGS=$(shell echo "-s -w -X main.appVersion=${.GIT_VERSION} -X main.appCommit=${.GIT_COMMIT} -X main.appCommitDate=${.GIT_COMMIT_DATE}")
5+
.TAGS=timetzdata
56

67
all: deps test vet fmt lint install
78

@@ -25,15 +26,15 @@ lint:
2526
revive -config revive.toml -formatter friendly ./...
2627

2728
build:
28-
go build --ldflags "${.LD_FLAGS}" -o bin/aem ./cmd/aem
29+
go build -tags "${.TAGS}" --ldflags "${.LD_FLAGS}" -o bin/aem ./cmd/aem
2930

3031
install:
31-
go install --ldflags "${.LD_FLAGS}" ./cmd/aem
32+
go install -tags "${.TAGS}" --ldflags "${.LD_FLAGS}" ./cmd/aem
3233

3334
other_build:
34-
GOARCH=amd64 GOOS=darwin go build --ldflags "${.LD_FLAGS}" -o bin/aem.darwin ./cmd/aem
35-
GOARCH=amd64 GOOS=linux go build --ldflags "${.LD_FLAGS}" -o bin/aem.linux ./cmd/aem
36-
GOARCH=amd64 GOOS=windows go build --ldflags "${.LD_FLAGS}" -o bin/aem.exe ./cmd/aem
35+
GOARCH=amd64 GOOS=darwin go build -tags "${.TAGS}" --ldflags "${.LD_FLAGS}" -o bin/aem.darwin ./cmd/aem
36+
GOARCH=amd64 GOOS=linux go build -tags "${.TAGS}" --ldflags "${.LD_FLAGS}" -o bin/aem.linux ./cmd/aem
37+
GOARCH=amd64 GOOS=windows go build -tags "${.TAGS}" --ldflags "${.LD_FLAGS}" -o bin/aem.exe ./cmd/aem
3738

3839
clean:
3940
go clean

pkg/content_manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/wttech/aemc/pkg/common/timex"
88
"github.com/wttech/aemc/pkg/common/tplx"
99
"github.com/wttech/aemc/pkg/content"
10-
"github.com/wttech/aemc/pkg/pkg"
1110
"os"
11+
"github.com/wttech/aemc/pkg/pkg"
1212
"path/filepath"
1313
"regexp"
1414
"strings"

pkg/package_manager.go

-5
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ func (pm *PackageManager) Create(opts PackageCreateOpts) (string, error) {
200200
return "", err
201201
}
202202
}
203-
if opts.ContentPath != "" {
204-
if err = pm.copyContentFiles(opts, tmpDir); err != nil {
205-
return "", err
206-
}
207-
}
208203
if err = content.Zip(tmpDir, tmpFile); err != nil {
209204
return "", err
210205
}

0 commit comments

Comments
 (0)