Skip to content

Commit 0f7a843

Browse files
authored
chore: release v0.20.1 (#2343)
chore: release v0.20.1
2 parents 160a26c + e715b7a commit 0f7a843

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4293
-551
lines changed

Diff for: .github/workflows/gen-binaries.yml

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
name: Generate embedded binaries
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
gen-nodetime:
10+
name: "Generate nodetime binaries"
11+
runs-on: ubuntu-latest
12+
concurrency: gen-nodetime
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up QEMU
17+
id: qemu
18+
uses: docker/setup-qemu-action@v1
19+
with:
20+
image: tonistiigi/binfmt:latest
21+
platforms: all
22+
23+
- uses: MOZGIII/install-ldid-action@v1
24+
with:
25+
tag: v2.1.5-procursus2
26+
27+
- uses: actions/setup-node@v2
28+
with:
29+
node-version: '16'
30+
31+
- run: ./scripts/gen-nodetime
32+
33+
- name: Create Pull Request
34+
id: cpr
35+
uses: peter-evans/create-pull-request@v4
36+
with:
37+
title: "feat(nodetime): update binaries"
38+
commit-message: "feat(nodetime): update binaries"
39+
body: ""
40+
branch: feat/gen-nodetime
41+
42+
gen-protoc:
43+
name: "Generate protoc binaries"
44+
runs-on: ${{ matrix.runner.runs-on }}
45+
concurrency: gen-protoc-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
runner:
50+
- runs-on: ubuntu-latest
51+
os: linux
52+
defaults-shell: bash
53+
arch: amd64
54+
- runs-on: [ self-hosted, linux, arm64 ]
55+
os: linux
56+
defaults-shell: bash
57+
arch: arm64
58+
- runs-on: [ self-hosted, macOS ]
59+
os: darwin
60+
defaults-shell: /usr/bin/arch -arch x86_64 /bin/bash -l {0}
61+
arch: amd64
62+
- runs-on: [ self-hosted, macOS ]
63+
os: darwin
64+
defaults-shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
65+
arch: arm64
66+
defaults:
67+
run:
68+
shell: ${{ matrix.runner.defaults-shell }}
69+
steps:
70+
- uses: actions/checkout@v2
71+
72+
- run: |
73+
if [[ "${{ matrix.runner.os }}" == "darwin" ]]; then
74+
brew install jq autoconf automake libtool
75+
else
76+
sudo apt install -y jq autoconf automake libtool curl make g++ unzip
77+
fi
78+
79+
- name: Build protoc files
80+
run: ./scripts/gen-protoc
81+
82+
- name: Create Pull Request
83+
uses: peter-evans/create-pull-request@v4
84+
with:
85+
title: "feat(protoc): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
86+
commit-message: "feat(protoc): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
87+
body: ""
88+
branch: feat/gen-protoc-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
89+
90+
91+
gen-protoc-gen-dart:
92+
name: "Generate protoc dart binaries"
93+
runs-on: ${{ matrix.runner.runs-on }}
94+
concurrency: gen-protoc-gen-dart-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
95+
strategy:
96+
fail-fast: false
97+
matrix:
98+
runner:
99+
- runs-on: ubuntu-latest
100+
dart-arch: x64
101+
arch: amd64
102+
os: linux
103+
defaults-shell: bash
104+
- runs-on: [self-hosted, linux, arm64]
105+
dart-arch: arm64
106+
arch: arm64
107+
os: linux
108+
defaults-shell: bash
109+
- runs-on: [self-hosted, macOS]
110+
dart-arch: arm64
111+
arch: arm64
112+
defaults-shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
113+
os: darwin
114+
- runs-on: [self-hosted, macOS]
115+
dart-arch: x64
116+
arch: amd64
117+
defaults-shell: /usr/bin/arch -arch x86_64 /bin/bash -l {0}
118+
os: darwin
119+
defaults:
120+
run:
121+
shell: ${{ matrix.runner.defaults-shell }}
122+
steps:
123+
- uses: actions/checkout@v2
124+
125+
- uses: dart-lang/setup-dart@v1
126+
with:
127+
architecture: ${{ matrix.runner.dart-arch }}
128+
129+
- name: Generate Dart files
130+
run: ./scripts/gen-protoc-gen-dart
131+
132+
- name: Create Pull Request
133+
uses: peter-evans/create-pull-request@v4
134+
with:
135+
title: "feat(protoc-gen-dart): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
136+
commit-message: "feat(protoc-gen-dart): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
137+
body: ""
138+
branch: feat/gen-protoc-gen-dart-${{ matrix.runner.os }}-${{ matrix.runner.arch }}

Diff for: .github/workflows/gen-protoc-gen-dart.yml

-34
This file was deleted.

Diff for: .github/workflows/release-docker.yml

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
echo ::set-output name=tags::${TAGS}
3131
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
3232
33+
- name: Set up QEMU
34+
uses: docker/setup-qemu-action@v1
35+
3336
- name: Set up Docker Buildx
3437
uses: docker/setup-buildx-action@v1
3538

@@ -44,6 +47,7 @@ jobs:
4447
with:
4548
push: true
4649
context: .
50+
platforms: linux/amd64,linux/arm64
4751
tags: ${{ steps.prep.outputs.tags }}
4852
labels: |
4953
org.opencontainers.image.source=${{ github.event.repository.html_url }}

Diff for: .github/workflows/release-nightly.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Delete the nightly release
1818
uses: dev-drprasad/[email protected]
1919
with:
20-
tag_name: nightly
20+
tag_name: v0.0.0-nightly
2121
delete_release: true
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -26,15 +26,15 @@ jobs:
2626
uses: mathieudutour/[email protected]
2727
with:
2828
github_token: ${{ secrets.GITHUB_TOKEN }}
29-
custom_tag: nightly
29+
custom_tag: v0.0.0-nightly
3030
tag_prefix: ""
3131

3232
- name: Upsert the nightly release
3333
uses: ncipollo/release-action@v1
3434
with:
35-
tag: nightly
35+
tag: v0.0.0-nightly
3636
name: nightly
37-
body: "Install and move to bin: `curl https://get.ignite.com/cli@nightly! | bash`"
37+
body: "Install and move the CLI to your bin directory: `curl https://get.ignite.com/cli@v0.0.0-nightly! | bash`"
3838
prerelease: true
3939

4040
- name: Set up Go
@@ -52,10 +52,6 @@ jobs:
5252
uses: goreleaser/goreleaser-action@v2
5353
with:
5454
workdir: ${{ env.working-directory }}
55-
# never versions always requires semver even with the use of --skip-validate flag.
56-
# we need to avoid semver since nightly release updated everytime there is chance on develop branch.
57-
# by avoiding semver, we prevent GOPROXY and pkg.go.dev to cache this tag.
58-
version: v0.157.0
5955
args: release --rm-dist --skip-validate -f .goreleaser.nightly.yml
6056
env:
6157
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

Diff for: .goreleaser.nightly.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ builds:
33
- main: ./ignite/cmd/ignite
44
ldflags:
55
- -s -w -X github.com/ignite-hq/cli/ignite/version.Version={{.Tag}} -X github.com/ignite-hq/cli/ignite/version.Date={{.Date}} -X github.com/ignite-hq/cli/ignite/version.Head={{.FullCommit}}
6+
goos:
7+
- linux
8+
- darwin
69
goarch:
710
- amd64
11+
- arm64
812
changelog:
913
skip: true
1014
release:

Diff for: .goreleaser.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ builds:
33
- main: ./ignite/cmd/ignite
44
ldflags:
55
- -s -w -X github.com/ignite-hq/cli/ignite/version.Version={{.Tag}} -X github.com/ignite-hq/cli/ignite/version.Date={{.Date}} -X github.com/ignite-hq/cli/ignite/version.Head={{.FullCommit}}
6+
goos:
7+
- linux
8+
- darwin
69
goarch:
710
- amd64
11+
- arm64

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## prep the base image.
55
#
6-
FROM golang:1.18.0-buster as base
6+
FROM golang:1.18.0-bullseye as base
77

88
RUN apt update && \
99
apt-get install -y \
@@ -41,7 +41,7 @@ COPY --from=builder /go/bin/ignite /usr/bin
4141
WORKDIR /apps
4242

4343
# see docs for exposed ports:
44-
# https://docs.starport.network/kb/config.html#host
44+
# https://docs.ignite.com/kb/config.html#host
4545
EXPOSE 26657
4646
EXPOSE 26656
4747
EXPOSE 6060

Diff for: changelog.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Changelog
22

3-
## [`v0.20.0`](https://github.com/ignite-hq/cli/releases/tag/v0.20.5)
3+
## [`v0.20.1`](https://github.com/ignite-hq/cli/releases/tag/v0.20.1)
44

5-
Our new name is **Ignite**!
5+
### Features
6+
7+
- Release the CLI with Linux ARM and native M1 binaries
8+
9+
## [`v0.20.0`](https://github.com/ignite-hq/cli/releases/tag/v0.20.0)
10+
11+
Our new name is **Ignite CLI**!
612

713
**IMPORTANT!** This upgrade renames `starport` command to `ignite`. From now on, use `ignite` command to access the CLI.
814

Diff for: docs/.vuepress/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = {
6565
},
6666
{
6767
service: "linkedin",
68-
url: "https://www.linkedin.com/company/ignite/",
68+
url: "https://linkedin.com/company/ignt/",
6969
},
7070
{
7171
service: "discord",

Diff for: docs/guide/blog/comment-blog.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ func (k msgServer) CreateComment(goCtx context.Context, msg *types.MsgCreateComm
163163

164164
post := k.GetPost(ctx, msg.PostID)
165165
postId := post.Id
166+
167+
// Check if the Post Exists for which a comment is being created
168+
if msg.PostID == 0 {
169+
return nil, sdkerrors.Wrapf(types.ErrID, "Post Blog Id does not exist for which comment with Blog Id %d was made", msg.PostID)
170+
}
166171

167172
// Create variable of type comment
168173
var comment = types.Comment{
@@ -173,12 +178,7 @@ func (k msgServer) CreateComment(goCtx context.Context, msg *types.MsgCreateComm
173178
PostID: msg.PostID,
174179
CreatedAt: ctx.BlockHeight(),
175180
}
176-
177-
// Check if the Post Exists for which a comment is being created
178-
if msg.PostID > postId && msg.PostID == postId {
179-
return nil, sdkerrors.Wrapf(types.ErrID, "Post Blog Id does not exist for which comment with Blog Id %d was made", msg.PostID)
180-
}
181-
181+
182182
// Check if the comment is older than the Post. If more than 100 blocks, then return error.
183183
if comment.CreatedAt > post.CreatedAt+100 {
184184
return nil, sdkerrors.Wrapf(types.ErrCommentOld, "Comment created at %d is older than post created at %d", comment.CreatedAt, post.CreatedAt)

0 commit comments

Comments
 (0)