Skip to content

Conversation

@mcarbonneaux
Copy link

this pull request add windows build

karimra and others added 27 commits September 28, 2025 09:53
…e-747

pins kafka to 3.5.2 for containerlab version of single-instance kafka-output example
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.41.0 to 0.42.0.
- [Commits](golang/crypto@v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…es/golang.org/x/crypto-0.42.0

Bump golang.org/x/crypto from 0.41.0 to 0.42.0
handle `[null]` and `null` when format is `event`
add missing processor name to proc list
fail xpath parsing when there are trailing chars after a key and before the next path element
bump api pkg go version and main pkg dependencies
  - Handle leading slash for flat format when origin is not included in
    prefix or prefix is non-existant
…ding-input-jetstream-setting

feat: capability for jetstream input to set MaxAckPending
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 8 to 9.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v8...v9)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.43.0 to 0.45.0.
- [Commits](golang/crypto@v0.43.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
fix openconfig#770 The API path to patch subscriptions for a target ID is wrong
fix event_group_by not handling delete events
…ctions/golangci/golangci-lint-action-9

Bump golangci/golangci-lint-action from 8 to 9
Fix leading slash handling for flat format
…es/golang.org/x/crypto-0.45.0

Bump golang.org/x/crypto from 0.43.0 to 0.45.0
@google-cla
Copy link

google-cla bot commented Dec 19, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@karimra
Copy link
Collaborator

karimra commented Dec 24, 2025

Windows builds were remove some time ago: karimra/gnmic#196
Any reason using WSL is not an option?
There are a few dependencies that don't work that well on Windows (go-prompt for example), that's why windows builds were removed.

@mcarbonneaux
Copy link
Author

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

it's overkill to use wsl for that... why not using native windows ?!
the advantage of native windows it's can be used in powershell context to....

@mcarbonneaux
Copy link
Author

mcarbonneaux commented Dec 30, 2025

go-prompt work fine in jetbrains terminal, but not fine on windows terminal... but work through msys2 pty posix emullation but is not perfect...
and can be disabled on not used on windows... or use alternative that are compatible with windows...

on with msys (had some problem with windows terminal size calculation) on windows terminal:
image

@mcarbonneaux
Copy link
Author

mcarbonneaux commented Dec 30, 2025

for windows we can use https://github.com/chzyer/readline in place of go-prompt.
it's possible to detect the platform an choose go-prompt of readline...

and go-prompt last commit as 4 years back, 28 pull request stale, multiple fork.... and readline last commit as 6 months only....
the more updated fork is https://github.com/elk-language/go-prompt....

@mcarbonneaux
Copy link
Author

mcarbonneaux commented Dec 30, 2025

i've migrated to https://github.com/elk-language/go-prompt and is working fine on windows terminal !!!!
image

@karimra
Copy link
Collaborator

karimra commented Jan 10, 2026

Fair point on go-prompt being abandoned, but do people really use windows to run gNMI ? How niche is it ?
Adding back windows builds means I will have to start supporting and fixing windows specific issues.

if: runner.os != 'Windows'
env:
CGO_ENABLED: 0
- run: bash ./tests/run_tests.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wouldn't work right ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

windows runner are build with bash but you need to call explicitly to use it.

@mcarbonneaux
Copy link
Author

test run ok : https://github.com/mcarbonneaux/gnmic/actions/runs/20915617555
but macos and windows staticcheck fail, and i think is reviewdog/action-staticcheck but on this plateform (they download static binary of another plateform...), i've removed because they dont need to be executed on any architecture but on code, the linux one is suffisant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants