Skip to content

Commit

Permalink
chore(wit): Use versioned wasi:logging package
Browse files Browse the repository at this point in the history
Publishing a package that depends on unversioned wit isn't allowed and
it requires monkey patching when doing locally anyway. What this does
mean is that all go examples need to use the versioned logging interface
once we release the new wash. I'll be adding support for that in the host
so it really only affects people who currently have Go components.

This is probably the easiest path forward for things unfortunately.

Signed-off-by: Taylor Thomas <[email protected]>
  • Loading branch information
thomastaylor312 committed Oct 8, 2024
1 parent 196b3b1 commit 41d9650
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gen/wasi/logging/logging/logging.wit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wit/deps/wasi-logging-0.1.0-draft/package.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:logging;
package wasi:logging@0.1.0-draft;

/// WASI Logging is a logging API intended to let users emit log messages with
/// simple priority levels and context values.
Expand Down
2 changes: 1 addition & 1 deletion wit/world.wit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ world imports {
include wasi:cli/imports@0.2.0;

// wasi
import wasi:logging/logging;
import wasi:logging/logging@0.1.0-draft;
import wasi:config/runtime@0.2.0-draft;
import wasi:http/outgoing-handler@0.2.0;

Expand Down

0 comments on commit 41d9650

Please sign in to comment.