Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Enable finch support-bundle generate to execute on Windows whe… #976

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

haytok
Copy link
Member

@haytok haytok commented Jun 12, 2024

…re the uname command does not exist

On Windows environments where the uname command is not available, executing finch support-bundle generate results in the following error:

C:\Users\simpl>"..\..\Program Files\Finch\bin\finch.exe" support-bundle generate
time="2024-06-11T23:21:16+09:00" level=info msg="Generating support bundle..."
time="2024-06-11T23:21:16+09:00" level=fatal msg="exec: \"uname\": executable file not found in %PATH%"

This bug has been reported in the following issue:

Therefore, this fix enables the execution of
finch support-bundle generate even when the uname command is not available on Windows.

Issue #, if available: #897

Description of changes: The details are described in this commit message.

Testing done: Yes

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…re the `uname` command does not exist

On Windows environments where the `uname` command is not available,
executing `finch support-bundle generate` results in the following error:

```
C:\Users\simpl>"..\..\Program Files\Finch\bin\finch.exe" support-bundle generate
time="2024-06-11T23:21:16+09:00" level=info msg="Generating support bundle..."
time="2024-06-11T23:21:16+09:00" level=fatal msg="exec: \"uname\": executable file not found in %PATH%"
```

This bug has been reported in the following issue:

- runfinch#897

Therefore, this fix enables the execution of
`finch support-bundle generate` even when the `uname` command is not
available on Windows.

Signed-off-by: Hayato Kiwata <haytok@amazon.co.jp>
@haytok haytok self-assigned this Jun 12, 2024
@haytok haytok requested a review from a team June 20, 2024 02:38
Copy link
Member

@pendo324 pendo324 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@pendo324 pendo324 merged commit 9c1caf0 into runfinch:main Jun 20, 2024
22 checks passed
@haytok haytok deleted the support-bundle-on-windows branch June 20, 2024 14:22
austinvazquez pushed a commit that referenced this pull request Jul 2, 2024
🤖 I have created a release *beep* *boop*
---


## [1.2.1](v1.2.0...v1.2.1)
(2024-07-02)


### Build System or External Dependencies

* **deps:** Bump github.com/aws/aws-sdk-go-v2 from 1.27.0 to 1.27.1
([#963](#963))
([4c2dc12](4c2dc12))
* **deps:** Bump github.com/aws/aws-sdk-go-v2 from 1.27.1 to 1.27.2
([#974](#974))
([54aa67c](54aa67c))
* **deps:** bump github.com/aws/aws-sdk-go-v2 from 1.27.2 to 1.30.0
([#991](#991))
([bbcb8e7](bbcb8e7))
* **deps:** Bump github.com/docker/cli from 26.1.3+incompatible to
26.1.4+incompatible
([#973](#973))
([f774e2d](f774e2d))
* **deps:** bump github.com/docker/cli from 26.1.4+incompatible to
27.0.2+incompatible
([#999](#999))
([0244698](0244698))
* **deps:** bump github.com/docker/cli from 27.0.2+incompatible to
27.0.3+incompatible
([#1005](#1005))
([c801e69](c801e69))
* **deps:** Bump github.com/docker/docker from 26.1.3+incompatible to
26.1.4+incompatible
([#972](#972))
([05b9c05](05b9c05))
* **deps:** bump github.com/docker/docker from 26.1.4+incompatible to
27.0.1+incompatible
([#996](#996))
([1f68260](1f68260))
* **deps:** bump github.com/docker/docker from 27.0.1+incompatible to
27.0.2+incompatible
([#1001](#1001))
([50a639b](50a639b))
* **deps:** bump github.com/docker/docker from 27.0.2+incompatible to
27.0.3+incompatible
([#1006](#1006))
([537abad](537abad))
* **deps:** bump github.com/spf13/cobra from 1.8.0 to 1.8.1
([#983](#983))
([7b2bed6](7b2bed6))
* **deps:** bump golang.org/x/image from 0.12.0 to 0.18.0
([#998](#998))
([398658e](398658e))
* **deps:** Bump golang.org/x/text from 0.15.0 to 0.16.0
([#964](#964))
([8a3973a](8a3973a))
* **deps:** Bump golang.org/x/tools from 0.21.0 to 0.22.0
([#967](#967))
([3921b00](3921b00))
* **deps:** bump k8s.io/apimachinery from 0.30.1 to 0.30.2
([#981](#981))
([c8ebf20](c8ebf20))
* **deps:** Bump submodules and dependencies
([#1008](#1008))
([6134a5a](6134a5a))
* **deps:** Bump submodules and dependencies
([#949](#949))
([b5ee424](b5ee424))


### Bug Fixes

* add SOCI snapshotter hash check
([#985](#985))
([563f346](563f346))
* Allow to use the COMPOSE_FILE variable in finch compose
([#994](#994))
([17d4bc8](17d4bc8))
* Enable `finch support-bundle generate` to execute on Windows whe…
([#976](#976))
([9c1caf0](9c1caf0))
* update snapshotters reference
([#986](#986))
([06b9027](06b9027))
* verify shasum for finch dependencies
([#969](#969))
([9d85f25](9d85f25))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants