Commit Graph

10 Commits

Author SHA1 Message Date
Edoardo Vacchi
76dce033d3 Upgrade floor Go version to 1.19 everywhere. (#1622) 2023-08-10 06:09:16 +09:00
Achille
1c2ca99834 wazero: add -count option to compile command (#1470)
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
2023-05-15 18:54:45 -07:00
Takeshi Yoneda
9c07b2793d Allows to set the version of CLI (#1176)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2023-02-28 18:09:41 +09:00
Crypt Keeper
8918d73020 ci: supports building with Go 1.20 and raises floor version to 1.18 (#1096)
This moves our floor version to the same we'll release 1.0 with: 1.18.
This is congruent with our version policy which is current-2.

Fixes #921

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-02-06 17:29:08 +02:00
Crypt Keeper
67cc6d3779 compilationcache: uses version-specific subdirectory (#982)
This makes the version, arch, os tuple into a subdirectory to help
troubleshooting and cache management in general. The version is left
inside the binary key regardless.

Note: when installing via `go install ./cmd/wazero/...` the version ends
up as `dev`. This helps make that obvious. For example.

```bash
$ wazero version
dev
$ ./build/tinygo test -target wasi -c -o os.wasm os
$ wazero run -cachedir=$HOME/.wazero -mount=.:/ -env=HOME=.  os.wasm -test.v
$ find $HOME/.wazero
/Users/adrian/.wazero
/Users/adrian/.wazero/wazero-dev-amd64-darwin
/Users/adrian/.wazero/wazero-dev-amd64-darwin/1f149f4bf475a33023ce33302780bee29ec08e89bd57cfbdf639c65c6009f1a4
```

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-12-31 07:01:57 +08:00
Takeshi Yoneda
100725dd1c cli: adds version command (#950)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-12-21 13:59:10 +09:00
Crypt Keeper
af3281c39c switches to gosimports for grouping (#849)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-11-09 07:04:24 +01:00
Crypt Keeper
958b25e3a6 Extends build compatability to one version behind Go's support policy (#833)
This enforces that wazero will build and operate one version behind Go's
support policy, making wazero's Go policy effectively three versions.

This is to allow libraries with more conservative Go policies to be able
to use wazero, specifically mosn is the first to need this.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-11-01 13:19:57 +08:00
Takeshi Yoneda
7f8e629c65 Use ReadBuildInfo to embed wazero version (#751)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2022-08-19 11:18:10 +09:00
Takeshi Yoneda
3b32c2028b Externalize compilation cache by compilers (#747)
This adds the experimental support of the file system compilation cache.
Notably, experimental.WithCompilationCacheDirName allows users to configure
where the compiler writes the cache into.

Versioning/validation of binary compatibility has been done via the release tag
(which will be created from the end of this month). More specifically, the cache
file starts with a header with the hardcoded wazero version.


Fixes #618

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Co-authored-by: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com>
2022-08-18 19:37:11 +09:00