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: port-forward error logs failed to port forward (#9728) #9759

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

mattsanta
Copy link
Contributor

  • fix: port-forward error logs failed to port forward

Reflect changes in os.Process introduced in Go 1.23

  • use reflect to make it future proof(?)

  • Add safeguards to call FieldByName

  • Add basic test to getHandleFromProcess

  • Fix copyright year

…rTools#9728)

* fix: port-forward error logs `failed to port forward`

Reflect changes in `os.Process` introduced in Go 1.23

* use `reflect` to make it future proof(?)

* Add safeguards to call FieldByName

* Add basic test to getHandleFromProcess

* Fix copyright year
@mattsanta
Copy link
Contributor Author

Linter is failing because a new schema version was added after this commit was merged to main and the linter is looking for the files generated when that new schema version was added. Since this commit we're cherry picking doesn't have any config changes I think we should be OK to ignore the failure.

Error in linter:

Error: time="2025-03-19T13:11:55Z" level=fatal msg="reading \"pkg/skaffold/schema/v4beta12/config.go\": open pkg/skaffold/schema/v4beta12/config.go: no such file or directory"

@mattsanta mattsanta marked this pull request as ready for review March 19, 2025 13:17
@mattsanta mattsanta requested a review from a team as a code owner March 19, 2025 13:17
@Darien-Lin Darien-Lin merged commit d76dbab into GoogleContainerTools:release/v2.14 Mar 19, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants