diff --git a/.github/.codecov.yml b/.github/.codecov.yml deleted file mode 100644 index 8fb4b4f..0000000 --- a/.github/.codecov.yml +++ /dev/null @@ -1,4 +0,0 @@ -coverage: - range: 30..55 - round: up - precision: 2 diff --git a/.github/workflows/codecov-coverage-reporter.yml b/.github/workflows/codecov-coverage-reporter.yml deleted file mode 100644 index a717211..0000000 --- a/.github/workflows/codecov-coverage-reporter.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Codecov - -on: - push: - tags: - - '*' - pull_request: - -jobs: - coverage-reporter: - strategy: - matrix: - go-version: [1.19.x] - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v3 - - # Setup Go - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go-version }} - cache: true - - # Remove apt repos that are known to break from time to time - # See https://github.com/actions/virtual-environments/issues/323 - - name: Remove broken apt repos [Ubuntu] - run: | - for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done - if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-18.04' - - # Run build of the application - - name: Run build - run: | - make -f MakeFile build - - # Run Tests and Coverage - - name: Run coverage - run: | - go test ./... -v -race -coverprofile=./coverage/${{ runner.os }}-coverage.txt -covermode=atomic || true - - - name: Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage/${{ runner.os }}-coverage.txt - env_vars: ${{ runner.os }}, ${{ matrix.go-version }} - verbose: true \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d7111cc..c2795b6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -133,7 +133,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/osrelease/osrelease.go b/osrelease/osrelease.go index 77f962a..1f67d32 100644 --- a/osrelease/osrelease.go +++ b/osrelease/osrelease.go @@ -26,7 +26,6 @@ func Read() (osrelease map[string]string, err error) { // ReadFile Similar to Read(), but takes the name of a file to load instead func ReadFile(filename string) (osrelease map[string]string, err error) { osrelease = make(map[string]string) - err = nil lines, err := parseFile(filename) if err != nil {