Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix: lint issues after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Jan 23, 2024
1 parent 0c1c498 commit a0c1ff2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 58 deletions.
46 changes: 0 additions & 46 deletions .github/.goreleaser.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- name: Codespell
uses: codespell-project/actions-codespell@v2
with:
skip: .git,*.png,*.woff,*.woff2,*.eot,*.ttf,*.jpg,*.ico,*.svg,*.gpg,.*asc
skip: .git,*.png,*.woff,*.woff2,*.eot,*.ttf,*.jpg,*.ico,*.svg,*.gpg,.*asc,.goreleaser.yaml
check_filenames: true
check_hidden: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Write 1.6.0-rc1 in /home/dvaumoron/.gotofuenv/.opentofu-version

String (Default: false)

If set to true gotofuenv detection of needed version will skip local check and verify compatibiliy on remote list.
If set to true gotofuenv detection of needed version will skip local check and verify compatibility on remote list.

`tenv` subcommands `detect` and `use` support a `--force-remote`, `-f` flag version.

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tofuutils/gotofuenv

go 1.21.5
go 1.21

require (
github.com/ProtonMail/gopenpgp/v2 v2.7.4
Expand Down
8 changes: 4 additions & 4 deletions pkg/check/cosign/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,24 @@ func TestCosignCheckCorrect(t *testing.T) {

func TestCosignCheckErrorCert(t *testing.T) {
if cosigncheck.Check(data, dataSig, dataCert[1:], identity, issuer) == nil {
t.Error("Should fail on erroneus certificate")
t.Error("Should fail on erroneous certificate")
}
}

func TestCosignCheckErrorIdentity(t *testing.T) {
if cosigncheck.Check(data, dataSig, dataCert, "me", issuer) == nil {
t.Error("Should fail on erroneus issuer")
t.Error("Should fail on erroneous issuer")
}
}

func TestCosignCheckErrorIssuer(t *testing.T) {
if cosigncheck.Check(data, dataSig, dataCert, identity, "http://myself.com") == nil {
t.Error("Should fail on erroneus issuer")
t.Error("Should fail on erroneous issuer")
}
}

func TestCosignCheckErrorSig(t *testing.T) {
if cosigncheck.Check(data, dataSig[1:], dataCert, identity, issuer) == nil {
t.Error("Should fail on erroneus signature")
t.Error("Should fail on erroneous signature")
}
}
4 changes: 2 additions & 2 deletions pkg/check/pgp/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func TestPgpCheckCorrect(t *testing.T) {

func TestPgpCheckErrorKey(t *testing.T) {
if pgpcheck.Check(data, dataSig, dataKey[1:]) == nil {
t.Error("Should fail on erroneus public key")
t.Error("Should fail on erroneous public key")
}
}

func TestPgpCheckErrorSig(t *testing.T) {
if pgpcheck.Check(data, dataSig[1:], dataKey) == nil {
t.Error("Should fail on erroneus signature")
t.Error("Should fail on erroneous signature")
}
}
5 changes: 2 additions & 3 deletions versionmanager/semantic/tfparser/tfparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"io/fs"
"path/filepath"

"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclparse"
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert"
Expand Down Expand Up @@ -80,8 +79,8 @@ func GatherRequiredVersion(verbose bool) ([]string, error) {
return nil
}

extraxted := extractRequiredVersion(parsedFile.Body, verbose)
requireds = append(requireds, extraxted...)
extracted := extractRequiredVersion(parsedFile.Body, verbose)
requireds = append(requireds, extracted...)
return nil
}
return nil
Expand Down

0 comments on commit a0c1ff2

Please sign in to comment.