command: change drive to lowercase for wsl path#5445
Merged
thaJeztah merged 1 commit intodocker:masterfrom Sep 18, 2024
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5445 +/- ##
=======================================
Coverage 59.75% 59.75%
=======================================
Files 345 345
Lines 23428 23428
=======================================
Hits 13999 13999
Misses 8455 8455
Partials 974 974 |
thaJeztah
reviewed
Sep 17, 2024
Member
|
Can you add (or update) a test-case in cli/cli/command/telemetry_docker_test.go Lines 11 to 29 in a4619f3 (could be a test-table if we want to add more cases to it) |
On Windows, the drive casing doesn't matter outside of WSL. For WSL, the drives are lowercase. When we're producing a WSL path, lowercase the drive letter. Co-authored-by: Jonathan A. Sternberg <[email protected]> Co-authored-by: Laura Brehm <[email protected]> Signed-off-by: Jonathan A. Sternberg <[email protected]> Signed-off-by: Laura Brehm <[email protected]>
9f0a594 to
3472bbc
Compare
Member
|
@thaJeztah can you TAL? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
On Windows, the drive casing doesn't matter outside of WSL. For WSL, the drives are lowercase. When we're producing a WSL path, lowercase the drive letter.
- How I did it
Called
strings.ToLoweron the drive when creating the WSL path.- How to verify it
- Description for the changelog
* Use lowercase windows drive letter for WSL metrics path- A picture of a cute animal (not mandatory but encouraged)