Skip to content

Commit

Permalink
fix ldflags not working
Browse files Browse the repository at this point in the history
  • Loading branch information
realDragonium committed Aug 17, 2021
1 parent df7bca3 commit 066cf2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
RUN go build -ldflags '-X "ultraviolet.uvVersion=docker"' ./cmd/Ultraviolet/
RUN go build -ldflags '-X "github.com/realDragonium/Ultraviolet.uvVersion=docker"' ./cmd/Ultraviolet/

FROM scratch
WORKDIR /
Expand Down
2 changes: 1 addition & 1 deletion cmd/Ultraviolet/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
- arm
- arm64
ldflags:
- -X ultraviolet.uvVersion={{.Version}}
- -X github.com/realDragonium/Ultraviolet.uvVersion={{.Version}}
release:
draft: true
name_template: '{{.Version}}'
Expand Down
2 changes: 1 addition & 1 deletion proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
var (
upg tableflip.Upgrader
ReqCh chan net.Conn
uvVersion string = "(unknown version)"
uvVersion = "(unknown version)"

bWorkerManager server.WorkerManager
backendManager server.BackendManager
Expand Down

0 comments on commit 066cf2c

Please sign in to comment.