Skip to content

Version solving failed on turbo run build #1

@eliotstock

Description

@eliotstock

Steps to repro:

  • Follow README instructions
  • Inspect package.json and see that there's a build script.
  • Run npm run build

Expected: no errors

Actual:

npm run build

> prebuild
> turbo run prebuild

• Packages in scope: @contracts/commons, @staking/contracts, eslint-config-base
• Running prebuild in 3 packages
• Remote caching disabled

No tasks were executed as part of this run.

 Tasks:    0 successful, 0 total
Cached:    0 cached, 0 total
  Time:    17ms


> build
> turbo run build

• Packages in scope: @contracts/commons, @staking/contracts, eslint-config-base
• Running build in 3 packages
• Remote caching disabled
@contracts/commons:build: cache miss, executing c88ea69c41b95dac
@contracts/commons:build:  WARN  Issue while reading "/home/e/r/nm/starknet-staking/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
@contracts/commons:build:
@contracts/commons:build: > @contracts/[email protected] build /home/e/r/nm/starknet-staking/workspace/packages/contracts
@contracts/commons:build: > scarb build
@contracts/commons:build:
@contracts/commons:build:     Updating git repository https://github.com/openzeppelin/cairo-contracts
@contracts/commons:build: ⠁ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠉ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠙ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠚ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠒ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠂ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠂ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠒ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +refs/tags/v0.14.0:refs/remotes/origin/tags/v0.14.0                                                                                                  ⠁ git clone --local --config core.autocrlf=false --recurse-submodules /home/e/.cache/scarb/registry/git/db/cairo-contracts-9cboa8jg3jldq.git /home/e/.cache/scarb/registry/git/checkouts/cairo-contracts-9cboa8j                          ⠁ git reset --hard f091c4f51ddeb10297db984acae965328c5a4e5b                                                                                                                                                                               error: Version solving failed:
@contracts/commons:build: - contracts v0.1.0 (/home/e/r/nm/starknet-staking/workspace/apps/staking/contracts/Scarb.toml) cannot use starknet v2.1.1 (std), because contracts requires starknet >=2.6.4
@contracts/commons:build: - contracts_commons v0.1.0 (/home/e/r/nm/starknet-staking/workspace/packages/contracts/Scarb.toml) cannot use starknet v2.1.1 (std), because contracts_commons requires starknet >=2.6.4
@contracts/commons:build: - openzeppelin v0.14.0 (git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.14.0) cannot use starknet v2.1.1 (std), because openzeppelin requires starknet ^2.6.4
@contracts/commons:build:
@contracts/commons:build: Scarb does not have real version solving algorithm yet.
@contracts/commons:build: Perhaps in the future this conflict could be resolved, but currently,
@contracts/commons:build: please upgrade your dependencies to use latest versions of their dependencies.
@contracts/commons:build:  ELIFECYCLE  Command failed with exit code 1.
@contracts/commons:build:  WARN   Local package.json exists, but node_modules missing, did you mean to install?
@contracts/commons:build: ERROR: command finished with error: command (/home/e/r/nm/starknet-staking/workspace/packages/contracts) /home/e/.local/share/pnpm/pnpm run build exited (1)
@contracts/commons#build: command (/home/e/r/nm/starknet-staking/workspace/packages/contracts) /home/e/.local/share/pnpm/pnpm run build exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    1.115s
Failed:    @contracts/commons#build

 ERROR  run failed: command  exited (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions