Skip to content

Commit

Permalink
Update to go 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jan 19, 2024
1 parent 2d4e987 commit adb98f0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
# go needs absolute directories, using the $HOME variable doesn't work here.
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
GO_VERSION: 1.18.4
GO_VERSION: 1.19.13

jobs:
########################
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM golang:1.18-alpine as builder
# If you change this value, please change it in the following files as well:
# /Dockerfile
# /tools/Dockerfile
# /.github/workflows/main.yml
FROM golang:1.19.13-alpine3.18 as builder

# Install build dependencies such as git and glide.
RUN apk add --no-cache git gcc musl-dev
Expand All @@ -14,7 +18,7 @@ COPY . /go/src/github.com/lightninglabs/lndmon/
RUN cd /go/src/github.com/lightninglabs/lndmon/cmd/lndmon && go build

# Start a new image
FROM alpine as final
FROM alpine:3.19 as final

COPY --from=builder /go/src/github.com/lightninglabs/lndmon/cmd/lndmon/lndmon /bin/

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/lightninglabs/lndmon

go 1.19

require (
github.com/btcsuite/btcd/btcutil v1.1.3
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
Expand Down Expand Up @@ -153,5 +155,3 @@ require (
modernc.org/token v1.0.1 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)

go 1.19
6 changes: 5 additions & 1 deletion tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM golang:1.18-buster
# If you change this value, please change it in the following files as well:
# /Dockerfile
# /tools/Dockerfile
# /.github/workflows/main.yml
FROM golang:1.19.13-bookworm

RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lightninglabs/lndmon/tools

go 1.18
go 1.19

require (
github.com/golangci/golangci-lint v1.46.2
Expand Down

0 comments on commit adb98f0

Please sign in to comment.