diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2a8d28a..d4d2e69 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [1.16, 1.17] + go: [1.17, 1.18] steps: - name: Set up Go uses: actions/setup-go@v2 @@ -15,7 +15,7 @@ jobs: - name: Check out source uses: actions/checkout@v2 - name: Install Linters - run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.2" + run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2" - name: Build run: go build ./... - name: Test diff --git a/.gitignore b/.gitignore index ebdf985..4eeff64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,15 @@ +*.exe +dcrvotingweb *~ vendor/ -hardforkdemo -dcrvotingweb *.orig .vscode + +# Testing, profiling, and benchmarking artifacts +cov.out +*cpu.out +*mem.out + +# Go 1.18 workspace +go.work +go.work.sum diff --git a/Dockerfile b/Dockerfile index 9a59c05..45ca5e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build image -FROM golang:1.17 +FROM golang:1.18 LABEL description="dcrvotingweb build" LABEL version="1.0" @@ -13,7 +13,7 @@ COPY ./ /root/ RUN go build -v . # Serve image -FROM golang:1.17 +FROM golang:1.18 LABEL description="dcrvotingweb serve" LABEL version="1.0" diff --git a/LICENSE b/LICENSE index 333e283..562b3aa 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -Copyright (c) 2015-2021, The Decred developers +Copyright (c) 2015-2022, The Decred developers Copyright (c) 2017, Jonathan Chappelow Permission to use, copy, modify, and/or distribute this software for any diff --git a/README.md b/README.md index 3b31ac1..3402fb1 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,13 @@ -dcrvotingweb -============ +# dcrvotingweb [![Build Status](https://github.com/decred/dcrvotingweb/workflows/Build%20and%20Test/badge.svg)](https://github.com/decred/dcrvotingweb/actions) [![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) ## Overview + dcrvotingweb is a simple web app that connects to dcrd and displays information about consensus rule voting. -## Installation - ## Developing It is recommended to use Go 1.17 (or newer) for development. diff --git a/go.mod b/go.mod index 22376c4..1674163 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/decred/dcrvotingweb -go 1.16 +go 1.17 require ( github.com/decred/dcrd/chaincfg/v3 v3.1.1 @@ -11,3 +11,26 @@ require ( github.com/dustin/go-humanize v1.0.0 github.com/jessevdk/go-flags v1.5.0 ) + +require ( + github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect + github.com/dchest/siphash v1.2.2 // indirect + github.com/decred/base58 v1.0.3 // indirect + github.com/decred/dcrd/blockchain/stake/v4 v4.0.0 // indirect + github.com/decred/dcrd/chaincfg/chainhash v1.0.3 // indirect + github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect + github.com/decred/dcrd/crypto/ripemd160 v1.0.1 // indirect + github.com/decred/dcrd/database/v3 v3.0.0 // indirect + github.com/decred/dcrd/dcrec v1.0.0 // indirect + github.com/decred/dcrd/dcrec/edwards/v2 v2.0.2 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect + github.com/decred/dcrd/dcrjson/v4 v4.0.0 // indirect + github.com/decred/dcrd/dcrutil/v4 v4.0.0 // indirect + github.com/decred/dcrd/gcs/v3 v3.0.0 // indirect + github.com/decred/dcrd/txscript/v4 v4.0.0 // indirect + github.com/decred/go-socks v1.1.0 // indirect + github.com/decred/slog v1.2.0 // indirect + github.com/gorilla/websocket v1.4.2 // indirect + golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 // indirect +) diff --git a/reloadsig.go b/reloadsig.go index d367a51..d79fdac 100644 --- a/reloadsig.go +++ b/reloadsig.go @@ -1,9 +1,8 @@ -// Copyright (c) 2017-2021 The Decred developers +// Copyright (c) 2017-2022 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris -// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris package main diff --git a/reloadsig_windows.go b/reloadsig_windows.go index 34c9fc0..3722f4f 100644 --- a/reloadsig_windows.go +++ b/reloadsig_windows.go @@ -1,9 +1,8 @@ -// Copyright (c) 2017-2021 The Decred developers +// Copyright (c) 2017-2022 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. //go:build windows -// +build windows package main