Skip to content

Commit

Permalink
Set preceise
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Nov 20, 2023
1 parent 5c70e88 commit 0ff1fef
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ jobs:
sudo apt-get install -y gcc-aarch64-linux-gnu libssl-dev
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Set GIT_HASH environment variable
run: echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV

- name: Build binaries
run: cargo build --release --bins --target ${{ matrix.job.target }}

Expand Down
5 changes: 3 additions & 2 deletions crates/dojo-core/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ version = 1

[[package]]
name = "dojo"
version = "0.3.6"
version = "0.3.10"
dependencies = [
"dojo_plugin",
]

[[package]]
name = "dojo_plugin"
version = "0.3.6"
version = "0.3.10"
source = "git+https://github.com/dojoengine/dojo?tag=v0.3.10#be1676252c41f8188465741edcbcb381d2c12080"
7 changes: 4 additions & 3 deletions crates/dojo-defi/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ source = "git+https://github.com/ponderingdemocritus/cubit#9c3bbdfee7b165ab06ac8

[[package]]
name = "dojo"
version = "0.3.3"
version = "0.3.10"
dependencies = [
"dojo_plugin",
]

[[package]]
name = "dojo_defi"
version = "0.3.3"
version = "0.3.10"
dependencies = [
"cubit",
"dojo",
]

[[package]]
name = "dojo_plugin"
version = "0.3.3"
version = "0.3.10"
source = "git+https://github.com/dojoengine/dojo?tag=v0.3.10#be1676252c41f8188465741edcbcb381d2c12080"
7 changes: 4 additions & 3 deletions crates/dojo-erc/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ version = 1

[[package]]
name = "dojo"
version = "0.3.1"
version = "0.3.10"
dependencies = [
"dojo_plugin",
]

[[package]]
name = "dojo_erc"
version = "0.3.1"
version = "0.3.10"
dependencies = [
"dojo",
]

[[package]]
name = "dojo_plugin"
version = "0.3.1"
version = "0.3.10"
source = "git+https://github.com/dojoengine/dojo?tag=v0.3.10#be1676252c41f8188465741edcbcb381d2c12080"
15 changes: 10 additions & 5 deletions crates/dojo-lang/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,17 @@ impl CairoPlugin for BuiltinDojoPlugin {
fn id(&self) -> PackageId {
let url = Url::parse("https://github.com/dojoengine/dojo").unwrap();
let version = env!("CARGO_PKG_VERSION");
PackageId::new(
PackageName::new(PACKAGE_NAME),
Version::parse(version).unwrap(),

let mut source_id =
SourceId::for_git(&url, &scarb::core::GitReference::Tag(format!("v{version}").into()))
.unwrap(),
)
.unwrap();

let rev = option_env!("GIT_HASH");
if let Some(rev) = rev {
source_id = source_id.with_precise(rev.to_string()).unwrap()
}

PackageId::new(PackageName::new(PACKAGE_NAME), Version::parse(version).unwrap(), source_id)
}

fn instantiate(&self) -> Result<Box<dyn CairoPluginInstance>> {
Expand Down
7 changes: 4 additions & 3 deletions crates/dojo-primitives/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ version = 1

[[package]]
name = "dojo"
version = "0.3.1"
version = "0.3.10"
dependencies = [
"dojo_plugin",
]

[[package]]
name = "dojo_plugin"
version = "0.3.1"
version = "0.3.10"
source = "git+https://github.com/dojoengine/dojo?tag=v0.3.10#be1676252c41f8188465741edcbcb381d2c12080"

[[package]]
name = "dojo_primitives"
version = "0.3.1"
version = "0.3.10"
dependencies = [
"dojo",
]
1 change: 1 addition & 0 deletions examples/spawn-and-move/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ dependencies = [
[[package]]
name = "dojo_plugin"
version = "0.3.10"
source = "git+https://github.com/dojoengine/dojo?tag=v0.3.10#be1676252c41f8188465741edcbcb381d2c12080"

0 comments on commit 0ff1fef

Please sign in to comment.