Fix method receivers and error handling in sharedaction/resource.go#3513
Fix method receivers and error handling in sharedaction/resource.go#3513wayneeseguin wants to merge 1 commit intocloudfoundry:mainfrom
Conversation
- Add named receivers to 6 methods that had unnamed receivers (Actor) - Fix error handling for ignore.CompileIgnoreLines() calls (4 occurrences) - Fix ignored error from ZipDirectoryResources in CreateArchive method
|
Does this need to fixed on the V8 branch as well? It is interfering with ginkgo and go test unit test writing. `go test cf_targets_test.go code.cloudfoundry.org/cli/actor/sharedaction../../../go/pkg/mod/code.cloudfoundry.org/cli@v0.0.0-20250512223002-f10828d071cc/actor/sharedaction/resource.go:441:11: not enough return values |
|
Here is the ginkgo failure for the same reason. `ginkgo . code.cloudfoundry.org/cli/actor/sharedaction../../../go/pkg/mod/code.cloudfoundry.org/cli@v0.0.0-20250512223002-f10828d071cc/actor/sharedaction/resource.go:441:11: not enough return values Ginkgo ran 1 suite in 340.711542ms Test Suite Failed` Once I fixed my downloaded code in ~/go/pkg.... I was able to continue writing my unit tests. |
|
Confused why ignore.CompileIgnoreLines is not returning two values. I will have to dig deeper into the CLI code. |
Thank you for contributing to the CF CLI! Please read the following:
If your contribution falls under a company CLA but your membership is not public, expect delays while we confirm.
Note: Please create separate PR for every branch (main, v8 and v7) as needed.
Description of the Change
We must be able to understand the design of your change from this description.
Keep in mind that the maintainer reviewing this PR may not be familiar with or
have worked with the code here recently, so please walk us through the concepts.
Why Is This PR Valuable?
What benefits will be realized by the code change? What users would want this change? What user need is this change addressing?
Applicable Issues
List any applicable GitHub Issues here
How Urgent Is The Change?
Is the change urgent? If so, explain why it is time-sensitive.
Other Relevant Parties
Who else is affected by the change?