Skip to content

Commit

Permalink
go vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Volkov committed Mar 21, 2024
1 parent 30aa7f1 commit cf000a8
Show file tree
Hide file tree
Showing 164 changed files with 45,955 additions and 45 deletions.
55 changes: 22 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,35 @@
name: Build and Release
name: goreleaser

on:
push:
tags:
- 'v*'
- "*"

permissions:
contents: write

jobs:
build:
name: Build
goreleaser:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.22.x]
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: macos-latest
arch: arm64
filename: joven-mac-m1
- os: ubuntu-latest
arch: amd64
filename: joven-linux
- os: windows-latest
arch: amd64
filename: joven-windows.exe

steps:
- name: Check out code
- name: Checkout
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
fetch-depth: 0

- name: Test
run: go test ./...
- name: Fetch all tags
run: git fetch --force --tags

- name: Build
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o ${{ matrix.filename }}

- name: Upload artifact
uses: actions/upload-artifact@v2
- run: sed -En 's/^go (.*)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GO_VERSION }}"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
name: ${{ matrix.filename }}
path: ./${{ matrix.filename }}
distribution: goreleaser
version: ${{ env.GITHUB_REF_NAME }}
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
32 changes: 32 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
builds:
- binary: joven
goos:
- darwin
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
flags:
- -mod=vendor

release:
prerelease: auto

universal_binaries:
- replace: true

brews:
-
name: joven
homepage: https://github.com/netvolart/joven
tap:
owner: netvolart
name: homebrew-tap
commit_author:
name: Artem Volkov
email: [email protected]

checksum:
name_template: 'checksums.txt'
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"encoding/json"
"fmt"

conf "github.com/netvolart/joven/config"
"github.com/spf13/cobra"
conf "github.com/volkovartem/joven/config"
)

// getCmd represents the get command
Expand Down
2 changes: 1 addition & 1 deletion cmd/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
"strings"

conf "github.com/netvolart/joven/config"
"github.com/spf13/cobra"
conf "github.com/volkovartem/joven/config"
)

var setCmd = &cobra.Command{
Expand Down
6 changes: 3 additions & 3 deletions cmd/tf.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"log"
"os"

"github.com/netvolart/joven/config"
"github.com/netvolart/joven/terraform"
"github.com/spf13/cobra"
"github.com/volkovartem/joven/config"
"github.com/volkovartem/joven/terraform"
)

// tfCmd represents the tf command
Expand All @@ -22,7 +22,7 @@ var tfCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {

conf, err := config.Load()

if err != nil {
log.Fatalf(err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/volkovartem/joven
module github.com/netvolart/joven

go 1.22.0

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright © 2024 NAME HERE <EMAIL ADDRESS>
*/
package main

import "github.com/volkovartem/joven/cmd"
import "github.com/netvolart/joven/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion terraform/community.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"strings"

"github.com/volkovartem/joven/config"
"github.com/netvolart/joven/config"
)

func getModuleVersionsFromRegistry(url string, localModule LocalModule) (module TerraformModule, Error error) {
Expand Down
2 changes: 1 addition & 1 deletion terraform/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/Masterminds/semver"
"github.com/volkovartem/joven/config"
"github.com/netvolart/joven/config"
)

func findOutdated(modules []*TerraformModule) ([]*TerraformModule, error) {
Expand Down
2 changes: 1 addition & 1 deletion terraform/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"

"github.com/Masterminds/semver"
"github.com/volkovartem/joven/config"
"github.com/netvolart/joven/config"
)

var ErrorPageNumberEmpty = errors.New("Page can't be empty")
Expand Down
2 changes: 1 addition & 1 deletion terraform/gitlab_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"strconv"

config "github.com/volkovartem/joven/config"
config "github.com/netvolart/joven/config"
)

type Response struct {
Expand Down
2 changes: 1 addition & 1 deletion terraform/gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"testing"

config "github.com/volkovartem/joven/config"
config "github.com/netvolart/joven/config"
)

// Create a mock config
Expand Down
29 changes: 29 additions & 0 deletions vendor/github.com/Masterminds/semver/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 109 additions & 0 deletions vendor/github.com/Masterminds/semver/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/Masterminds/semver/LICENSE.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cf000a8

Please sign in to comment.