[GH-ISSUE #4533] [bug]: Selfhost desktop app can't build (Tauri) #1663

Closed
opened 2026-03-16 21:19:08 +03:00 by kerem · 2 comments
Owner

Originally created by @ImNicolasTheDev on GitHub (Nov 13, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4533

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When building the selhost desktop app (version 2024.10.0) using a Dockerfile, the build fails with the following error :

PWA v0.13.1
mode      generateSW
precache  94 entries (11962.90 KiB)
files generated
  dist/sw.js.map
  dist/sw.js
  dist/workbox-70befd9e.js.map
  dist/workbox-70befd9e.js
  ✓ built in 1m 13s
      Updating git repository `https://github.com/FabianLars/tauri-plugin-deep-link`
      Updating git repository `https://github.com/tauri-apps/plugins-workspace`
      Updating git repository `https://github.com/CuriousCorrelation/curl-rust.git`
      Updating git submodule `https://github.com/curl/curl.git`
error: no matching package named `tauri` found
location searched: registry `crates-io`
required by package `tauri-plugin-store v0.0.0 (https://github.com/tauri-apps/plugins-workspace?branch=v1#fa8ee1d4)`
     ... which satisfies git dependency `tauri-plugin-store` (locked to 0.0.0) of package `hoppscotch-desktop v24.10.0 (/tmp/packages/hoppscotch-selfhost-desktop/src-tauri)`
        Error failed to build app: failed to build app
ELIFECYCLE  Command failed with exit code 1.

I want to build the desktop app using tauri's cross-platform compilation system. Here's the documentation.

Here is the step that fails in my Dockerfile (it's the last line that fails) :

RUN cd /tmp && \
    pnpm install && \
    cd /tmp/packages/hoppscotch-selfhost-desktop && \
    cargo install --locked cargo-xwin && \
    mv /tmp/config.toml ~/.cargo/. && \
    pnpm tauri build --target x86_64-pc-windows-msvc

Any help is appreciated, thanks ! :)

Steps to reproduce

  1. Clone the repo
  2. Set up your .env file
  3. Create a dockerfile, set it up (install all necessary dependencies)
  4. Add the step described in the description
  5. Run the Dockerfile

Environment

Production

Version

Self-hosted

Originally created by @ImNicolasTheDev on GitHub (Nov 13, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4533 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior When building the selhost desktop app (version [2024.10.0](https://github.com/hoppscotch/hoppscotch/releases/tag/2024.10.0)) using a Dockerfile, the build fails with the following error : ``` PWA v0.13.1 mode generateSW precache 94 entries (11962.90 KiB) files generated dist/sw.js.map dist/sw.js dist/workbox-70befd9e.js.map dist/workbox-70befd9e.js ✓ built in 1m 13s Updating git repository `https://github.com/FabianLars/tauri-plugin-deep-link` Updating git repository `https://github.com/tauri-apps/plugins-workspace` Updating git repository `https://github.com/CuriousCorrelation/curl-rust.git` Updating git submodule `https://github.com/curl/curl.git` error: no matching package named `tauri` found location searched: registry `crates-io` required by package `tauri-plugin-store v0.0.0 (https://github.com/tauri-apps/plugins-workspace?branch=v1#fa8ee1d4)` ... which satisfies git dependency `tauri-plugin-store` (locked to 0.0.0) of package `hoppscotch-desktop v24.10.0 (/tmp/packages/hoppscotch-selfhost-desktop/src-tauri)` Error failed to build app: failed to build app ELIFECYCLE  Command failed with exit code 1. ``` I want to build the desktop app using tauri's cross-platform compilation system. Here's the [documentation](https://v1.tauri.app/v1/guides/building/cross-platform/). Here is the step that fails in my Dockerfile (it's the last line that fails) : ```docker RUN cd /tmp && \ pnpm install && \ cd /tmp/packages/hoppscotch-selfhost-desktop && \ cargo install --locked cargo-xwin && \ mv /tmp/config.toml ~/.cargo/. && \ pnpm tauri build --target x86_64-pc-windows-msvc ``` Any help is appreciated, thanks ! :) ### Steps to reproduce 1. Clone the repo 2. Set up your .env file 3. Create a dockerfile, set it up (install all necessary dependencies) 4. Add the step described in the description 5. Run the Dockerfile ### Environment Production ### Version Self-hosted
kerem 2026-03-16 21:19:08 +03:00
Author
Owner

@ImNicolasTheDev commented on GitHub (Nov 13, 2024):

Also, on another version (24.3.2), the same Dockerfile fails with the following error :

PWA v0.13.3
mode      generateSW
precache  94 entries (8761.80 KiB)
files generated
   dist/sw.js.map
   dist/sw.js
   dist/workbox-ad3f6f76.js.map
   dist/workbox-ad3f6f76.js
 ✓ built in 58.41s
     Updating git repository `https://github.com/FabianLars/tauri-plugin-deep-link`
     Updating git repository `https://github.com/tauri-apps/plugins-workspace`
 error: invalid character `{` in package name: `tauri-plugin-{{name}}`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters)
  --> ../../../../root/.cargo/git/checkouts/plugins-workspace-fd0259fcb18f51ad/5b814f5/shared/template/Cargo.toml:2:8
   |
2 | name = "tauri-plugin-{{name}}"
   |        ^^^^^^^^^^^^^^^^^^^^^^^
   |
error: no matching package named `tauri` found
location searched: registry `crates-io`
required by package `hoppscotch-desktop v24.3.2 (/tmp/packages/hoppscotch-selfhost-desktop/src-tauri)`
        Error failed to build app: failed to build app
 ELIFECYCLE  Command failed with exit code 1.

Maybe this could be interesting to find why the error is happening ?

<!-- gh-comment-id:2473166187 --> @ImNicolasTheDev commented on GitHub (Nov 13, 2024): Also, on another version (**24.3.2**), the same Dockerfile fails with the following error : ``` PWA v0.13.3 mode generateSW precache 94 entries (8761.80 KiB) files generated dist/sw.js.map dist/sw.js dist/workbox-ad3f6f76.js.map dist/workbox-ad3f6f76.js ✓ built in 58.41s Updating git repository `https://github.com/FabianLars/tauri-plugin-deep-link` Updating git repository `https://github.com/tauri-apps/plugins-workspace` error: invalid character `{` in package name: `tauri-plugin-{{name}}`, characters must be Unicode XID characters (numbers, `-`, `_`, or most letters) --> ../../../../root/.cargo/git/checkouts/plugins-workspace-fd0259fcb18f51ad/5b814f5/shared/template/Cargo.toml:2:8 | 2 | name = "tauri-plugin-{{name}}" | ^^^^^^^^^^^^^^^^^^^^^^^ | error: no matching package named `tauri` found location searched: registry `crates-io` required by package `hoppscotch-desktop v24.3.2 (/tmp/packages/hoppscotch-selfhost-desktop/src-tauri)` Error failed to build app: failed to build app  ELIFECYCLE  Command failed with exit code 1. ``` Maybe this could be interesting to find why the error is happening ?
Author
Owner

@ImNicolasTheDev commented on GitHub (Nov 20, 2024):

Ok, there was a misconfiguration in the config.toml. The registry index had a typo.
The issue can be closed !

<!-- gh-comment-id:2488147123 --> @ImNicolasTheDev commented on GitHub (Nov 20, 2024): Ok, there was a misconfiguration in the config.toml. The registry index had a typo. The issue can be closed !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1663
No description provided.