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

feat: use edgee-component toml to build #3

Merged
merged 6 commits into from
Feb 12, 2025
Merged

Conversation

NicolasGirardot
Copy link
Contributor

We moved the build process to be compatible with our edgee cli

@NicolasGirardot NicolasGirardot requested a review from a team as a code owner February 7, 2025 07:46
@alexcasalboni
Copy link
Contributor

@CLEMENTINATOR could you please have a look here?

I get these errors/warnings when running:

$ go run go.bytecodealliance.org/cmd/wit-bindgen-go generate -o internal/ ./wit

wasm-tools: error: interface not found in package
     --> /dev/stdin:35:21
      |
   35 | 	import wasi:clocks/timezone@0.2.2;
      |                     ^-------
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: error: interface not found in package
     --> /dev/stdin:7:21
      |
    7 | 	import wasi:clocks/timezone@0.2.2;
      |                     ^-------
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm-tools: thread 'main' panicked at /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wit-parser-0.220.0/src/resolve.rs:1071:41:
assertion `left == right` failed
  left: 1
 right: 5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Then everything works fine when I run tinygo build -target=wasip2 -o dc_component.wasm --wit-package wit/ --wit-world data-collection ./, but unfortunately if I run those two commands in series (like in the manifest build command) it doesn't work because the first one doesn't succeed (officially).

alexcasalboni

This comment was marked as outdated.

Copy link
Contributor

@alexcasalboni alexcasalboni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some errors locally, let's figure it out together.

@CLEMENTINATOR CLEMENTINATOR merged commit a1da0aa into main Feb 12, 2025
1 check passed
@CLEMENTINATOR CLEMENTINATOR deleted the edgee-build-process branch February 12, 2025 13:33
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