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

fix: cargo update to target available cosmic-text commit #73

Conversation

jokeyrhyme
Copy link

one naive attempt at addressing:

cosmic-applibrary on  master_jammy is 📦 v0.1.0 via 🦀 v1.72.1
nu ❯ cargo build --release
    Updating crates.io index
    Updating git repository `https://github.com/pop-os/libcosmic/`
    Updating git submodule `https://github.com/pop-os/cosmic-design-demo`
    Updating git submodule `https://github.com/pop-os/iced.git`
    Updating git repository `https://github.com/pop-os/cosmic-protocols`
    Updating git repository `https://github.com/pop-os/dbus-settings-bindings`
    Updating git repository `https://github.com/DioxusLabs/taffy`
    Updating git repository `https://github.com/smithay/client-toolkit`
    Updating git repository `https://github.com/jackpot51/rust-atomicwrites`
    Updating git repository `https://github.com/pop-os/cosmic-text.git`
error: failed to get `cosmic-text` as a dependency of package `iced_tiny_skia v0.12.0 (https://github.com/pop-os/libcosmic/#481cd5a0)`
    ... which satisfies git dependency `iced_tiny_skia` (locked to 0.12.0) of package `libcosmic v0.1.0 (https://github.com/pop-os/libcosmic/#481cd5a0)`
    ... which satisfies git dependency `libcosmic` (locked to 0.1.0) of package `cosmic-app-library v0.1.0 (/home/ron/GitHub/pop-os/cosmic-applibrary)`

Caused by:
  failed to load source for dependency `cosmic-text`

Caused by:
  Unable to update https://github.com/pop-os/cosmic-text.git?branch=refactor#6abf336e

Caused by:
  object not found - no match for id (6abf336e6df08771d80232b2d6853269be34ee28); class=Odb (9); code=NotFound (-3)
  • tested manually, launcher appears, displays app icons+labels in a grid, and can start selected app

@jokeyrhyme
Copy link
Author

FYI @wash2

@wash2 wash2 merged commit 2358acb into pop-os:master_jammy Jan 22, 2024
4 checks passed
@jokeyrhyme jokeyrhyme deleted the fix-missing-refactor-branch-of-cosmic-text branch January 23, 2024 00:00
@jokeyrhyme
Copy link
Author

Thanks! :D

@Elias-Graf
Copy link

Question: Currently, I am unable to build and run this package using the provided flake: nix run . because of the following error:

error: builder for '/nix/store/1xn15ahjqznd15qyxhfnghc6m8f53abi-cosmic-app-library-deps-0.1.0.drv' failed with exit code 101;
       last 25 log lines:
       > unpacking source archive /nix/store/fbg2f3dckam2dhy0bl8a81ylp8y1sjzr-source
       > source root is source
       > patching sources
       > Executing configureCargoCommonVars
       > configuring
       > will append /build/source/.cargo-home/config.toml with contents of /nix/store/66hkjlyma9sdqp55j04g49h8vsgaz5ww-vendor-cargo-deps/config.toml
       > default configurePhase, nothing to do
       > building
       > ++ command cargo --version
       > cargo 1.70.0 (ec8a8a0ca 2023-04-25)
       > ++ command cargo check --release --all-targets
       > error: failed to select a version for `swash`.
       >     ... required by package `cosmic-text v0.12.1 (https://github.com/pop-os/cosmic-text.git#1de82331)`
       >     ... which satisfies git dependency `cosmic-text` (locked to 0.12.1) of package `iced_graphics v0.14.0-dev (https://github.com/pop-os/libcosmic/#51ede4bc)`
       >     ... which satisfies git dependency `iced_graphics` (locked to 0.14.0-dev) of package `iced_renderer v0.14.0-dev (https://github.com/pop-os/libcosmic/#51ede4bc)`
       >     ... which satisfies git dependency `iced_renderer` (locked to 0.14.0-dev) of package `iced v0.14.0-dev (https://github.com/pop-os/libcosmic/#51ede4bc)`
       >     ... which satisfies git dependency `iced` (locked to 0.14.0-dev) of package `libcosmic v0.1.0 (https://github.com/pop-os/libcosmic/#51ede4bc)`
       >     ... which satisfies git dependency `libcosmic` (locked to 0.1.0) of package `cosmic-app-library v0.1.0 (/build/source)`
       > versions that meet the requirements `^0.1.17` (locked to 0.1.19) are: 0.1.19
       >
       > the package `cosmic-text` depends on `swash`, with features: `zeno` but `swash` does not have these features.
       >  It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
       >
       >
       > failed to select a version for `swash` which could resolve this conflict
       For full logs, run 'nix log /nix/store/1xn15ahjqznd15qyxhfnghc6m8f53abi-cosmic-app-library-deps-0.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/3kfvq72jjh17jvwznilvxp0avbq1qv4c-cosmic-app-library-0.1.0.drv' failed to build

Running cargo update does not seem to help. Is this a similar problem, to what was addressed in this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants