Skip to content

Commit a779982

Browse files
authored
Go: Remove Go from wit-bindgen (#1195)
This commit removes the Go language generator from the wit-bindgen project. The Go bindings have been moved to a separate repository, and all Go-related code and tests have been deleted. This commit updates CLI to redirect users to the new Go bindings repository. The Go bindings can now be found at: https://github.com/bytecodealliance/go-modules Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
1 parent 07dfa1d commit a779982

File tree

25 files changed

+15
-3772
lines changed

25 files changed

+15
-3772
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
matrix:
6060
os: [ubuntu-latest, macos-latest, windows-latest]
6161
# moonbit removed from language matrix for now - causing CI failures
62-
lang: [c, rust, go, csharp]
62+
lang: [c, rust, csharp]
6363
exclude:
6464
# For now csharp doesn't work on macos, so exclude it from testing.
6565
- os: macos-latest
@@ -99,15 +99,6 @@ jobs:
9999
shell: powershell
100100
if: matrix.os == 'windows-latest' && matrix.lang == 'moonbit'
101101
102-
- uses: actions/setup-go@v4
103-
if: matrix.lang == 'go'
104-
with:
105-
go-version: '1.20'
106-
- uses: acifani/setup-tinygo@v2
107-
if: matrix.lang == 'go'
108-
with:
109-
tinygo-version: 0.31.0
110-
111102
- run: |
112103
cargo test \
113104
-p wit-bindgen-cli \

Cargo.lock

Lines changed: 0 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ wit-component = "0.227.0"
4242
wit-bindgen-core = { path = 'crates/core', version = '0.40.0' }
4343
wit-bindgen-c = { path = 'crates/c', version = '0.40.0' }
4444
wit-bindgen-rust = { path = "crates/rust", version = "0.40.0" }
45-
wit-bindgen-go = { path = 'crates/go', version = '0.40.0' }
4645
wit-bindgen-csharp = { path = 'crates/csharp', version = '0.40.0' }
4746
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.40.0' }
4847
wit-bindgen-moonbit = { path = 'crates/moonbit', version = '0.40.0' }
@@ -59,7 +58,6 @@ wit-bindgen-rust = { workspace = true, features = ['clap'], optional = true }
5958
wit-bindgen-c = { workspace = true, features = ['clap'], optional = true }
6059
wit-bindgen-markdown = { workspace = true, features = ['clap'], optional = true }
6160
wit-bindgen-moonbit = { workspace = true, features = ['clap'], optional = true }
62-
wit-bindgen-go = { workspace = true, features = ['clap'], optional = true }
6361
wit-bindgen-csharp = { workspace = true, features = ['clap'], optional = true }
6462
wit-component = { workspace = true }
6563
wasm-encoder = { workspace = true }
@@ -77,7 +75,7 @@ default = [
7775
c = ['dep:wit-bindgen-c']
7876
rust = ['dep:wit-bindgen-rust']
7977
markdown = ['dep:wit-bindgen-markdown']
80-
go = ['dep:wit-bindgen-go']
78+
go = []
8179
csharp = ['dep:wit-bindgen-csharp']
8280
csharp-mono = ['csharp']
8381
moonbit = ['dep:wit-bindgen-moonbit']

ci/publish.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const CRATES_TO_PUBLISH: &[&str] = &[
2020
"wit-bindgen-core",
2121
"wit-bindgen-c",
2222
"wit-bindgen-rust",
23-
"wit-bindgen-go",
2423
"wit-bindgen-csharp",
2524
"wit-bindgen-markdown",
2625
"wit-bindgen-moonbit",

crates/go/Cargo.toml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)