From 9a52e9dab7e0971f1c81f61f76b4f42fa1b3b335 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 26 Jan 2022 15:34:51 -0800 Subject: [PATCH] multi: remove all code point to btcd in README After [this PR](https://github.com/btcsuite/btcd/pull/1785) this repo is now deprecated as the code lives in `btcd` within a new sub-module. In this commit, we remove all the code, and update the README to point to the new location. --- .github/workflows/go.yml | 64 ---------------------------------------- .gitignore | 30 ------------------- .golangci.yml | 54 --------------------------------- 3 files changed, 148 deletions(-) delete mode 100644 .github/workflows/go.yml delete mode 100644 .gitignore delete mode 100644 .golangci.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 541cc82a..00000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build and Test -on: [push, pull_request] - -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.16.8 - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Check out source - uses: actions/checkout@v2 - - - name: Build - run: make build - - test-cover: - name: Unit coverage - runs-on: ubuntu-latest - steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Check out source - uses: actions/checkout@v2 - - - name: Test - run: make unit-cover - - - name: Send btcutil coverage - uses: shogo82148/actions-goveralls@v1 - with: - path-to-profile: coverage.txt - - - name: Send btcutil coverage for psbt package - uses: shogo82148/actions-goveralls@v1 - with: - path-to-profile: psbt/coverage.txt - - test-race: - name: Unit race - runs-on: ubuntu-latest - steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Check out source - uses: actions/checkout@v2 - - - name: Test - run: make unit-race diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 4b0deb06..00000000 --- a/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# Temp files -*~ - -# Log files -*.log - -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -coverage.txt -psbt/coverage.txt diff --git a/.golangci.yml b/.golangci.yml deleted file mode 100644 index 9ee85c43..00000000 --- a/.golangci.yml +++ /dev/null @@ -1,54 +0,0 @@ -run: - # timeout for analysis - deadline: 10m - -linters-settings: - govet: - # Don't report about shadowed variables - check-shadowing: false - gofmt: - # simplify code: gofmt with `-s` option, true by default - simplify: true - -linters: - enable-all: true - disable: - # Global variables are used in many places throughout the code base. - - gochecknoglobals - - # Some lines are over 80 characters on purpose and we don't want to make them - # even longer by marking them as 'nolint'. - - lll - - # We don't care (enough) about misaligned structs to lint that. - - maligned - - # We have long functions, especially in tests. Moving or renaming those would - # trigger funlen problems that we may not want to solve at that time. - - funlen - - # Disable for now as we haven't yet tuned the sensitivity to our codebase - # yet. Enabling by default for example, would also force new contributors to - # potentially extensively refactor code, when they want to smaller change to - # land. - - gocyclo - - # Instances of table driven tests that don't pre-allocate shouldn't trigger - # the linter. - - prealloc - - # Init functions are used by loggers throughout the codebase. - - gochecknoinits - - # Explicit types are okay. - - interfacer - -issues: - exclude-rules: - # Exclude gosec from running for tests so that tests with weak randomness - # (math/rand) will pass the linter. - - path: _test\.go - linters: - - gosec - #- errcheck - - dupl