loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
8.42k stars 305 forks source link

Vendoring the rust dependencies for offline-building a package for openSUSE #1094

Open johanneskastl opened 1 month ago

johanneskastl commented 1 month ago

Hi,

I wanted to try and package devpod for openSUSE. However, vendoring of the rust dependencies (which is required, as the builds happen offline) fails:

2024-05-25T14:59:26.959466Z ERROR obs_service_cargo::utils: stdoutput=""
2024-05-25T14:59:26.959534Z ERROR obs_service_cargo::utils: stderrput="    Updating crates.io index\n    Updating git repository `https://github.com/tauri-apps/plugins-workspace`\nerror: failed to get `tauri-plugin-log` as a dependency of package `devpod-desktop v0.1.0 (/tmp/.obs-service-cargo-vendornccuCi74/devpod/desktop/src-tauri)`\n\nCaused by:\n  failed to load source for dependency `tauri-plugin-log`\n\nCaused by:\n  Unable to update https://github.com/tauri-apps/plugins-workspace?branch=dev\n\nCaused by:\n  failed to find branch `dev`\n\nCaused by:\n  cannot locate remote-tracking branch 'origin/dev'; class=Reference (4); code=NotFound (-3)\n"
2024-05-25T14:59:26.959701Z ERROR obs_service_cargo::vendor: err=Failed to run command `cargo update`. Has exit code `101`. Standard Output Error: 
2024-05-25T14:59:26.959738Z ERROR obs_service_cargo::cli: err=kind: cargo vendor process failed
reason: Unable to execute cargo

It seems to look for a branch called dev that does not / no longer exist:

cannot locate remote-tracking branch 'origin/dev'

Could you have a look, please?

Kind Regards, Johannes

johanneskastl commented 1 week ago

No ideas, anyone?