Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .github/workflows/depscheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ on:

jobs:
depscheck:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.20.5'
go-version: '1.26.5'
- run: chmod -R +x ./scripts
- run: bash scripts/gogetcookie.sh
- run: make depscheck
12 changes: 7 additions & 5 deletions .github/workflows/golint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ on:

jobs:
golint:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.20'
- uses: golangci/golangci-lint-action@v4
go-version: '1.26.5'
- uses: golangci/golangci-lint-action@v9
with:
version: 'v1.54'
version: 'v2.12'
args: -v
22 changes: 12 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,33 @@ on:

jobs:
goreleaser:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v7
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v7
with:
go-version: '1.20.5'
go-version: '1.26.5'
-
name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v2
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
uses: crazy-max/ghaction-import-gpg@v7
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3.0.0
uses: goreleaser/goreleaser-action@v7
with:
version: '~> v1'
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
8 changes: 5 additions & 3 deletions .github/workflows/thirty-two-bit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ on:

jobs:
compatibility-32bit-test:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.20.5'
go-version: '1.26.5'
- run: bash scripts/gogetcookie.sh
- run: GOARCH=386 GOOS=linux go build -o 32bitbuild .
10 changes: 6 additions & 4 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ on:

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: '1.20.5'
go-version: '1.26.5'
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
uses: hashicorp/setup-terraform@v4
with:
terraform_version: latest
terraform_wrapper: false
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal/schemas/schemas_gen.go
internal/schemas/data/
terraform-ls
commands/.temp
commands/log.txt

# never upload the build to git
armstrong
Expand Down
7 changes: 5 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version: 2

before:
hooks:
# this is just an example and not a requirement for provider building/publishing
Expand Down Expand Up @@ -30,7 +32,8 @@ builds:
goarch: '386'
binary: '{{ .ProjectName }}'
archives:
- format: zip
- formats:
- zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
Expand All @@ -51,4 +54,4 @@ release:
# If you want to manually examine the release before its live, uncomment this line:
draft: true
changelog:
skip: true
disable: true
6 changes: 4 additions & 2 deletions autorest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func ParseAutoRestConfig(filename string) []Package {

out := make([]Package, 0)
for _, codeBlock := range codeBlocks {
if string(codeBlock.Info) == "yaml" {
yamlPackage, err := ParseYamlConfig(string(codeBlock.Literal))
const yamlPrefix = "yaml "
if info := string(codeBlock.Info); strings.HasPrefix(info, yamlPrefix) {
content := strings.TrimPrefix(info, yamlPrefix) + "\n" + string(codeBlock.Literal)
yamlPackage, err := ParseYamlConfig(content)
if err != nil {
logrus.Warnf("failed to parse yaml config: %+v", err)
} else {
Expand Down
2 changes: 1 addition & 1 deletion commands/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c CleanupCommand) Execute() int {
if destroyErr != nil {
logrus.Errorf("failed to destroy resources: %+v", destroyErr)

logs, err := trace.NewRequestTraceParser(trace.TextParser).ParseFromFile(path.Join(wd, "log.txt"))
logs, err := trace.NewRequestTraceParser().ParseFromFile(path.Join(wd, "log.txt"))
if err != nil {
logrus.Errorf("failed to parse log.txt: %+v", err)
}
Expand Down
Loading
Loading