Skip to content

Commit

Permalink
refactor!: follow go semver (#3793)
Browse files Browse the repository at this point in the history
* chore: follow go semver

* non go files

* docs

* better changelog and add process

* fixes

* do not tidy

* updates

* feedback

Co-authored-by: Jerónimo Albi <[email protected]>

* updates

Co-authored-by: Jerónimo Albi <[email protected]>

---------

Co-authored-by: Jerónimo Albi <[email protected]>
  • Loading branch information
julienrbrt and jeronimoalbi authored Dec 5, 2023
1 parent 9aa965c commit 1b408b3
Show file tree
Hide file tree
Showing 330 changed files with 968 additions and 971 deletions.
10 changes: 6 additions & 4 deletions .github/ISSUE_TEMPLATE/release-tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ v without deliberation
<!-- List of tests that need be performed with previous
versions of cli to guarantee that no regression is introduced -->


### Other testing

## Migration
## Migration

<!-- Link to migration document -->

## Checklist

<!-- Remove any items that are not applicable. -->

- [ ] Branch off main to create release branch in the form of `release/vx.y.z`.
- [ ] Add branch protection rules to new release branch.
- [ ] Update Ignite CLI version (see [#3793](https://github.com/ignite/cli/pull/3793) for example):
- [ ] Rename module version in go.mod to `/vXX` (where `XX` is the new version number).
- [ ] Update plugins go plush, protos and re-generate them
- [ ] Update documentation links (docs/docs)
- [ ] Update GitHub actions, goreleaser and other CI/CD scripts

## Post-release checklist

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Release nightly

on:
workflow_dispatch:
branches:
- main
push:
branches:
- main
Expand All @@ -16,13 +14,13 @@ jobs:
consecutiveness:
runs-on: ubuntu-latest
steps:
- uses: ignite/consecutive-workflow-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ignite/consecutive-workflow-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

release-nightly:
runs-on: ubuntu-latest
needs: [ consecutiveness ]
needs: [consecutiveness]
env:
working-directory: go/src/github.com/ignite/cli

Expand Down Expand Up @@ -70,5 +68,5 @@ jobs:
release_name: "nightly"
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: -s -w -X github.com/ignite/cli/ignite/version.Version=nightly
ldflags: -s -w -X github.com/ignite/cli/v28/ignite/version.Version=nightly
retry: 10
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project_name: ignite
builds:
- main: ./ignite/cmd/ignite
ldflags:
- -s -w -X github.com/ignite/cli/ignite/version.Version={{.Tag}}
- -s -w -X github.com/ignite/cli/v28/ignite/version.Version={{.Tag}}
goos:
- linux
- darwin
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ govulncheck:
format:
@echo Formatting...
@go run mvdan.cc/gofumpt -w .
@go run golang.org/x/tools/cmd/goimports -w -local github.com/ignite/cli .
@go run golang.org/x/tools/cmd/goimports -w -local github.com/ignite/cli/v28 .
@go run github.com/tbruyelle/mdgofmt/cmd/mdgofmt -w docs

## lint: Run Golang CI Lint.
Expand All @@ -64,7 +64,7 @@ lint-fix:
.PHONY: govet format lint

## proto-all: Format, lint and generate code from proto files using buf.
proto-all: proto-format proto-lint proto-gen
proto-all: proto-format proto-lint proto-gen format

## proto-gen: Run buf generate.
proto-gen:
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

### Changes

- [#3793](https://github.com/ignite/cli/pull/3793) Refactor Ignite to follow semantic versioning (prepares v28.0.0). If you are using packages, do not forget to import the `/v28` version of the packages.
- [#3529](https://github.com/ignite/cli/pull/3529) Refactor plugin system to use gRPC
- [#3750](https://github.com/ignite/cli/pull/3750) Update default Ignite network app to `v0.2.0`
- [#3751](https://github.com/ignite/cli/pull/3751) Rename label to skip changelog check
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/03-clients/01-go-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ import (
"log"

// Importing the general purpose Cosmos blockchain client
"github.com/ignite/cli/ignite/pkg/cosmosclient"
"github.com/ignite/cli/v28/ignite/pkg/cosmosclient"

// Importing the types package of your blog blockchain
"blog/x/blog/types"
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/07-packages/cosmostxcollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ import (
"context"
"log"

"github.com/ignite/cli/ignite/pkg/clictx"
"github.com/ignite/cli/ignite/pkg/cosmosclient"
"github.com/ignite/cli/ignite/pkg/cosmostxcollector"
"github.com/ignite/cli/ignite/pkg/cosmostxcollector/adapter/postgres"
"github.com/ignite/cli/v28/ignite/pkg/clictx"
"github.com/ignite/cli/v28/ignite/pkg/cosmosclient"
"github.com/ignite/cli/v28/ignite/pkg/cosmostxcollector"
"github.com/ignite/cli/v28/ignite/pkg/cosmostxcollector/adapter/postgres"
)

const (
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/ignite/cli
module github.com/ignite/cli/v28

go 1.21.1

Expand Down
6 changes: 3 additions & 3 deletions ignite/cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"

"github.com/ignite/cli/ignite/pkg/cliui/cliquiz"
"github.com/ignite/cli/ignite/pkg/cliui/entrywriter"
"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cliui/cliquiz"
"github.com/ignite/cli/v28/ignite/pkg/cliui/entrywriter"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/account_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

func NewAccountCreate() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/account_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

func NewAccountDelete() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/account_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

func NewAccountExport() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions ignite/cmd/account_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/cosmos/go-bip39"
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cliui/cliquiz"
"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cliui/cliquiz"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

const flagSecret = "secret"
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/account_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

func NewAccountList() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/account_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cosmosaccount"
"github.com/ignite/cli/v28/ignite/pkg/cosmosaccount"
)

func NewAccountShow() *cobra.Command {
Expand Down
20 changes: 10 additions & 10 deletions ignite/cmd/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import (
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"

chainconfig "github.com/ignite/cli/ignite/config/chain"
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/colors"
"github.com/ignite/cli/ignite/pkg/cliui/icons"
"github.com/ignite/cli/ignite/pkg/cosmosgen"
"github.com/ignite/cli/ignite/pkg/goanalysis"
"github.com/ignite/cli/ignite/pkg/gomodulepath"
"github.com/ignite/cli/ignite/pkg/xast"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/ignite/services/doctor"
chainconfig "github.com/ignite/cli/v28/ignite/config/chain"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/colors"
"github.com/ignite/cli/v28/ignite/pkg/cliui/icons"
"github.com/ignite/cli/v28/ignite/pkg/cosmosgen"
"github.com/ignite/cli/v28/ignite/pkg/goanalysis"
"github.com/ignite/cli/v28/ignite/pkg/gomodulepath"
"github.com/ignite/cli/v28/ignite/pkg/xast"
"github.com/ignite/cli/v28/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/services/doctor"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions ignite/cmd/chain_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"

"github.com/ignite/cli/ignite/pkg/chaincmd"
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/colors"
"github.com/ignite/cli/ignite/pkg/cosmosver"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/pkg/chaincmd"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/colors"
"github.com/ignite/cli/v28/ignite/pkg/cosmosver"
"github.com/ignite/cli/v28/ignite/services/chain"
)

const (
Expand Down
18 changes: 9 additions & 9 deletions ignite/cmd/chain_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/spf13/cobra"

cmdmodel "github.com/ignite/cli/ignite/cmd/model"
"github.com/ignite/cli/ignite/pkg/chaincmd"
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/icons"
cliuimodel "github.com/ignite/cli/ignite/pkg/cliui/model"
"github.com/ignite/cli/ignite/pkg/debugger"
"github.com/ignite/cli/ignite/pkg/events"
"github.com/ignite/cli/ignite/pkg/xurl"
"github.com/ignite/cli/ignite/services/chain"
cmdmodel "github.com/ignite/cli/v28/ignite/cmd/model"
"github.com/ignite/cli/v28/ignite/pkg/chaincmd"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/icons"
cliuimodel "github.com/ignite/cli/v28/ignite/pkg/cliui/model"
"github.com/ignite/cli/v28/ignite/pkg/debugger"
"github.com/ignite/cli/v28/ignite/pkg/events"
"github.com/ignite/cli/v28/ignite/pkg/xurl"
"github.com/ignite/cli/v28/ignite/services/chain"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions ignite/cmd/chain_faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/chaincmd"
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/pkg/chaincmd"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/services/chain"
)

// NewChainFaucet creates a new faucet command to send coins to accounts.
Expand Down
10 changes: 5 additions & 5 deletions ignite/cmd/chain_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/chaincmd"
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/colors"
"github.com/ignite/cli/ignite/pkg/cosmosver"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/pkg/chaincmd"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/colors"
"github.com/ignite/cli/v28/ignite/pkg/cosmosver"
"github.com/ignite/cli/v28/ignite/services/chain"
)

func NewChainInit() *cobra.Command {
Expand Down
14 changes: 7 additions & 7 deletions ignite/cmd/chain_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/spf13/cobra"

cmdmodel "github.com/ignite/cli/ignite/cmd/model"
"github.com/ignite/cli/ignite/pkg/cliui"
uilog "github.com/ignite/cli/ignite/pkg/cliui/log"
cliuimodel "github.com/ignite/cli/ignite/pkg/cliui/model"
"github.com/ignite/cli/ignite/pkg/cosmosver"
"github.com/ignite/cli/ignite/pkg/events"
"github.com/ignite/cli/ignite/services/chain"
cmdmodel "github.com/ignite/cli/v28/ignite/cmd/model"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
uilog "github.com/ignite/cli/v28/ignite/pkg/cliui/log"
cliuimodel "github.com/ignite/cli/v28/ignite/pkg/cliui/model"
"github.com/ignite/cli/v28/ignite/pkg/cosmosver"
"github.com/ignite/cli/v28/ignite/pkg/events"
"github.com/ignite/cli/v28/ignite/services/chain"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/chain_simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/services/chain"
)

const (
Expand Down
20 changes: 10 additions & 10 deletions ignite/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ import (
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"

"github.com/ignite/cli/ignite/config"
"github.com/ignite/cli/ignite/pkg/cache"
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/colors"
uilog "github.com/ignite/cli/ignite/pkg/cliui/log"
"github.com/ignite/cli/ignite/pkg/gitpod"
"github.com/ignite/cli/ignite/pkg/goenv"
"github.com/ignite/cli/ignite/pkg/xgenny"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/ignite/version"
"github.com/ignite/cli/v28/ignite/config"
"github.com/ignite/cli/v28/ignite/pkg/cache"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/colors"
uilog "github.com/ignite/cli/v28/ignite/pkg/cliui/log"
"github.com/ignite/cli/v28/ignite/pkg/gitpod"
"github.com/ignite/cli/v28/ignite/pkg/goenv"
"github.com/ignite/cli/v28/ignite/pkg/xgenny"
"github.com/ignite/cli/v28/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/version"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions ignite/cmd/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/docs"
"github.com/ignite/cli/ignite/pkg/localfs"
"github.com/ignite/cli/ignite/pkg/markdownviewer"
"github.com/ignite/cli/v28/docs"
"github.com/ignite/cli/v28/ignite/pkg/localfs"
"github.com/ignite/cli/v28/ignite/pkg/markdownviewer"
)

func NewDocs() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions ignite/cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/services/doctor"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/services/doctor"
)

func NewDoctor() *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions ignite/cmd/generate_composables.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/icons"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/icons"
"github.com/ignite/cli/v28/ignite/services/chain"
)

func NewGenerateComposables() *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions ignite/cmd/generate_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package ignitecmd
import (
"github.com/spf13/cobra"

"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/icons"
"github.com/ignite/cli/ignite/services/chain"
"github.com/ignite/cli/v28/ignite/pkg/cliui"
"github.com/ignite/cli/v28/ignite/pkg/cliui/icons"
"github.com/ignite/cli/v28/ignite/services/chain"
)

func NewGenerateGo() *cobra.Command {
Expand Down
Loading

0 comments on commit 1b408b3

Please sign in to comment.