This commit updates the integration test build step to run `go mod
tidy`, since the Go SDK pulls in an external Go module for the router.
This commit also ignores `go.sum` for the Go examples from the
`examples/` directory.
Signed-off-by: Radu Matei <radu.matei@fermyon.com>
Co-authored-by: Rajat Jindal <rajat.jindal@fermyon.com>
* grand Go SDK update
- Add `outbound-redis` set operations and `execute` function
- Add `key-value` support
- Remove `*_free` calls since they were buggy and unnecessary given that we tell `tinygo` to leak anyway
- Remove `-wasm-abi=generic` option since it's been removed as of `tinygo` 0.27
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
* fix Go CI issues
- Update Go and `tinygo` versions
- Use `interface{}` instead of `any` for broader compatibility
- Make `tinygo-outbound-redis` example sort the `SMEMBERS` result before comparing with the expected value
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
* rename Go SDK key-value directory to key_value
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
---------
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
* chore(outbound-redis): Add basic integration test
Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
* feat(outbound-redis): Add DEL command
Closes: #801.
Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
* feat(go-sdk): Add INCR and DEL support
Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
This commit adds a new top level Spin command that simplifies building more
complex applications. Specifically, this command will execute the build commands
set in each local component configuration:
```toml
[component.build]
command = "cargo build --target wasm32-wasi --release --manifest-path http-rust/Cargo.toml"
```
The build commands for all components in the local application manifest are
currently run sequentially (running multiple resource-intensive compilation processes
concurrently does not seem to be the most efficient choice currently).
Optionally, after all compilation processes are finished, if the `--up` flag is
passed, the application can be started without calling `spin up`.
This means that the entire developer "inner loop" for working on a Spin application
can be `spin build --up`.
Signed-off-by: Radu Matei <radu.matei@fermyon.com>
feat
Signed-off-by: Radu Matei <radu.matei@fermyon.com>
feat
Signed-off-by: Radu Matei <radu.matei@fermyon.com>
Adding the --no-debug build flag reduces the wasm binary file size
significantly.
For example building examples/http-tinygo before was 764K. Now it's
reduced to 221K.
This commit consolidates the two new `redis` and `outbound_redis` packages
from the Go SDK into a single `redis` package that contains both the Redis
trigger implementation and the functionality to connect to an external Redis
instance.
Signed-off-by: Radu Matei <radu.matei@fermyon.com>