Skip to content

Cargo isn't able to find the spin-sdk crate during build #2107

@divya-mohan0209

Description

@divya-mohan0209

Hello folks!

I was trying out the containerd-shim-spin quickstart and while building the container image, the below error message was thrown:

 => ERROR [build 4/4] RUN rustup target add wasm32-wasi && cargo build --target wasm32-wasi --release                                                          459.5s
------                                                                                                                                                                
 > [build 4/4] RUN rustup target add wasm32-wasi && cargo build --target wasm32-wasi --release:                                                                       
0.187 info: downloading component 'rust-std' for 'wasm32-wasi'                                                                                                        
15.78 info: installing component 'rust-std' for 'wasm32-wasi'                                                                                                         
17.35     Updating crates.io index                                                                                                                                    
423.7     Updating git repository `https://github.com/fermyon/spin`                                                                                                   
459.4 error: no matching package named `spin-sdk` found
459.4 location searched: https://github.com/fermyon/spin?tag=v2.0.1#1d72f1c4
459.4 required by package `qs-wasm-spin v0.1.0 (/opt/build)`

I'm running spin v2.0.1

spin --version
spin 2.0.1 (1d72f1c 2023-11-10)

The list of plugins that I have are:

 spin plugins list  
check-for-update 0.0.1
check-for-update 0.1.0
cloud 0.1.0
cloud 0.1.1
cloud 0.1.2
cloud 0.2.0
cloud 0.3.0
cloud 0.4.0
cloud 0.4.1
cloud 0.5.0
cloud 0.5.1 [installed]
cloud-gpu 0.1.0
js2wasm 0.1.0
js2wasm 0.2.0
js2wasm 0.3.0
js2wasm 0.4.0
js2wasm 0.5.0
js2wasm 0.5.1
js2wasm 0.6.0
js2wasm 0.6.1 [installed]
k8s 0.1.0 [installed]
pluginify 0.6.0
py2wasm 0.1.0
py2wasm 0.1.1
py2wasm 0.2.0
py2wasm 0.3.0
py2wasm 0.3.2 [installed]

Other details:

  • I'm running this on my Mac (M1 chip), but I've also tried this out on Ubuntu.
  • Docker Desktop version 4.25.2 and I have also enabled the beta feature for running wasm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue has become inactive and may be closed if it remains so

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions