Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: v0.1.11 #112

Merged
merged 4 commits into from
Dec 4, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/publish-bolt-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Check versions are aligned
run: |
# Fails if versions are not aligned
cargo install git-cliff
cargo install git-cliff@2.6.1 --locked
./version-align.sh --check
- name: run build
Expand Down Expand Up @@ -205,6 +205,9 @@ jobs:
cargo publish $DRY_RUN_FLAG --manifest-path=programs/bolt-component/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
cargo publish $DRY_RUN_FLAG --manifest-path=programs/world/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/Cargo.toml --token $CRATES_TOKEN $NO_VERIFY_FLAG
if [ "${DRY_RUN}" != "true" ]; then
cargo publish --manifest-path=cli/Cargo.toml --token $CRATES_TOKEN
fi
Comment on lines +208 to +210
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GabrielePicco
Unlike the other crates, I cannot run cargo publish --manifest-path=cli/Cargo.toml --no-verify because it fails with:

error: failed to prepare local package for uploading

Caused by:
  failed to select a version for the requirement `world = "=0.1.11"`
  candidate versions found which didn't match: 0.1.10, 0.1.9, 0.1.8, ...
  location searched: crates.io index
  required by package `bolt-cli v0.1.11 (/root/dev/magicblock-labs/bolt/cli)`

It happens because the crate isn't published yet. This verification is skipped on other crates, like bolt-lang, with -no-verify. But for some reason, it isn't working for bolt-cli.

Would it be probably because it's a binary crate? Idk

Copy link
Contributor

@GabrielePicco GabrielePicco Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notdanilo Looks like it's searching on crates.io rather than resolving the world dependency from the local path. We may have to investigate, since with the above change we are not checking anymore that we can correctly publish the cli crate

env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
DRY_RUN: ${{ env.DRY_RUN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-bolt-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
- name: Check versions are aligned
run: |
# Fails if versions are not aligned
cargo install git-cliff
cargo install git-cliff@2.6.1 --locked
./version-align.sh --check

- name: run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Check versions are aligned
run: |
# Fails if versions are not aligned
cargo install git-cliff
cargo install git-cliff@2.6.1 --locked
./version-align.sh --check

- name: Build the NPM package
Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@

## [0.1.10] - 2024-10-04
## [0.1.11] - 2024-12-04


### 🐛 Bug Fixes

### 📚 Documentation

### 👷 CI/CD
- Reorganizing templates, using bolt.workspace an… (#95)

### ♻️ Refactor
- Fixing test template, broken after code refactor (#93)

## [0.1.10] - 2024-10-05

### 👷 CI/CD

Expand Down
92 changes: 46 additions & 46 deletions Cargo.lock

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

32 changes: 16 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ members = [
]

[workspace.package]
version = "0.1.10"
version = "0.1.11"
authors = ["Magicblock Labs <[email protected]>"]
repository = "https://github.com/magicblock-labs/bolt"
homepage = "https://www.magicblock.gg/"
license = "MIT"
edition = "2021"

[workspace.dependencies]
bolt-attribute-bolt-program = { path = "crates/bolt-lang/attribute/bolt-program", version = "=0.1.10" }
bolt-attribute-bolt-delegate = { path = "crates/bolt-lang/attribute/delegate", version = "=0.1.10" }
bolt-attribute-bolt-component = { path = "crates/bolt-lang/attribute/component", version = "=0.1.10" }
bolt-attribute-bolt-system = { path = "crates/bolt-lang/attribute/system", version = "=0.1.10"}
bolt-attribute-bolt-system-input = { path = "crates/bolt-lang/attribute/system-input", version = "=0.1.10" }
bolt-attribute-bolt-extra-accounts = { path = "crates/bolt-lang/attribute/extra-accounts", version = "=0.1.10" }
bolt-attribute-bolt-arguments = { path = "crates/bolt-lang/attribute/arguments", version = "=0.1.10" }
bolt-attribute-bolt-component-deserialize = { path = "crates/bolt-lang/attribute/component-deserialize", version = "=0.1.10" }
bolt-attribute-bolt-component-id = { path = "crates/bolt-lang/attribute/component-id", version = "=0.1.10" }
bolt-helpers-system-template = { path = "crates/bolt-helpers/attribute/system-template", version = "=0.1.10" }
bolt-helpers-world-apply = { path = "crates/bolt-helpers/attribute/world-apply", version = "=0.1.10" }
bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.1.10" }
world = { path = "programs/world", features = ["cpi"], version = "=0.1.10"}
bolt-system = { path = "programs/bolt-system", features = ["cpi"], version = "=0.1.10"}
bolt-component = { path = "programs/bolt-component", features = ["cpi"], version = "=0.1.10"}
bolt-attribute-bolt-program = { path = "crates/bolt-lang/attribute/bolt-program", version = "=0.1.11" }
bolt-attribute-bolt-delegate = { path = "crates/bolt-lang/attribute/delegate", version = "=0.1.11" }
bolt-attribute-bolt-component = { path = "crates/bolt-lang/attribute/component", version = "=0.1.11" }
bolt-attribute-bolt-system = { path = "crates/bolt-lang/attribute/system", version = "=0.1.11"}
bolt-attribute-bolt-system-input = { path = "crates/bolt-lang/attribute/system-input", version = "=0.1.11" }
bolt-attribute-bolt-extra-accounts = { path = "crates/bolt-lang/attribute/extra-accounts", version = "=0.1.11" }
bolt-attribute-bolt-arguments = { path = "crates/bolt-lang/attribute/arguments", version = "=0.1.11" }
bolt-attribute-bolt-component-deserialize = { path = "crates/bolt-lang/attribute/component-deserialize", version = "=0.1.11" }
bolt-attribute-bolt-component-id = { path = "crates/bolt-lang/attribute/component-id", version = "=0.1.11" }
bolt-helpers-system-template = { path = "crates/bolt-helpers/attribute/system-template", version = "=0.1.11" }
bolt-helpers-world-apply = { path = "crates/bolt-helpers/attribute/world-apply", version = "=0.1.11" }
bolt-utils = { path = "crates/bolt-lang/utils", version = "=0.1.11" }
world = { path = "programs/world", features = ["cpi"], version = "=0.1.11"}
bolt-system = { path = "programs/bolt-system", features = ["cpi"], version = "=0.1.11"}
bolt-component = { path = "programs/bolt-component", features = ["cpi"], version = "=0.1.11"}

## External crates
anchor-lang = { version = "=0.30.1", features = ["init-if-needed"] }
Expand Down
Loading
Loading