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(util): Call ToSlash for Windows filename #111

Merged

Conversation

pan93412
Copy link
Member

@pan93412 pan93412 commented Sep 10, 2024

Description (required)

Turns all the src\app\filename to src/app/filename.

Related issues & labels (optional)

  • Closes ZEA-4045
  • Suggested label: bug

@pan93412 pan93412 self-assigned this Sep 10, 2024
@pan93412 pan93412 added the bug Something isn't working label Sep 10, 2024
@pan93412 pan93412 requested a review from yuaanlin September 10, 2024 03:45
@@ -73,6 +73,9 @@ func PackZipWithoutGitIgnoreFiles() ([]byte, error) {
return err
}

// For Windows, we should replace the backslashes with forward slashes
header.Name = filepath.ToSlash(header.Name)

if info.IsDir() {
header.Name += string(filepath.Separator)
Copy link
Member Author

Choose a reason for hiding this comment

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

wait wtf

@yuaanlin yuaanlin merged commit 604b21a into main Sep 10, 2024
2 checks passed
@yuaanlin yuaanlin deleted the pan93412/zea-4045-cli-adapt-for-windowss-slash-filename branch September 10, 2024 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants