diff --git a/README.md b/README.md index 4a13e019..177c6580 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ TinyGo's official release of WASI target will come soon, and after that you coul | proxy-wasm-go-sdk| proxy-wasm ABI version |istio/proxyv2| |:-------------:|:-------------:|:-------------:| | main | 0.2.0| v1.17.x | -| v0.0.7 | 0.2.0| v1.17.x | +| v0.0.8 | 0.2.0| v1.17.x | ## run examples diff --git a/proxywasm/abi_version.go b/proxywasm/abi_version.go index 75908986..dbd5e0d1 100644 --- a/proxywasm/abi_version.go +++ b/proxywasm/abi_version.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !abi_0_1_0 + package proxywasm //nolint diff --git a/proxywasm/abi_version_010.go b/proxywasm/abi_version_010.go new file mode 100644 index 00000000..d4ca3789 --- /dev/null +++ b/proxywasm/abi_version_010.go @@ -0,0 +1,24 @@ +// Copyright 2020 Tetrate +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// +build abi_0_1_0 + +// This ABI version switching is necessary to be compatible with the envoyproxy/envoy-wasm release/v1.15 branch +// TODO: delete this file and support the single ABI version + +package proxywasm + +//nolint +//export proxy_abi_version_0_1_0 +func proxyABIVersion010() {}