Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.
This repository was archived by the owner on May 18, 2026. It is now read-only.

Unit Test failure for windows OS in archive.go file #334

@shaheerkootteeri

Description

@shaheerkootteeri

Please fill out the issue checklist below and provide ALL the requested information.

  • I reviewed open and closed Github issues that may be related to my problem.
  • I am reporting a bug that others will be able to reproduce.

Describe the bug

A clear and concise description of what the bug is.
Unit test failing in Windows OS for archive.go file test cases
OS: Windows

Error details

--- FAIL: TestHandleZip (0.02s) --- FAIL: TestHandleZip/valid_jar (0.01s) archive_test.go:155: ExtractZip() (-want, +got) = bytes.Join({ - "package main\r", - "\r", - "import \"fmt\"\r", - "\r", - "func main() {\r", - "\tfmt.Println(\"hello world\")\r", - "}\r", + "package main", + "", + import "fmt", + "", + "func main() {", + fmt.Println("hello world"), + "}", "", }, "\n") --- FAIL: TestHandleZip/valid_zip (0.00s) archive_test.go:155: ExtractZip() (-want, +got) = bytes.Join({ - "package main\r", - "\r", - "import \"fmt\"\r", - "\r", - "func main() {\r", - "\tfmt.Println(\"hello world\")\r", - "}\r", + "package main", + "", + import "fmt", + "", + "func main() {", + fmt.Println("hello world"), + "}", "", }, "\n")

Expected behavior

A clear and concise description of what you expected to happen.

All unit test cases are successful

Steps to Reproduce

Steps to reproduce the behavior:

clone apps-cli-plugin code git clone https://github.com/vmware-tanzu/apps-cli-plugin in windows and run go test ./....

Screenshots

If applicable, add screenshots to help explain your problem.

Version (Apps plugin version, Version of K8s running on cluster)

Put the output of the following commad

tanzu version && tanzu apps version

Environment where the bug was observed (cloud, OS, etc)

Additional context & Relevant Debug Output (Logs, etc)

Add any other context about the problem here.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions