Skip to content

Conversation

@Ascenio
Copy link
Contributor

@Ascenio Ascenio commented Jan 18, 2025

Status

READY

Description

Removes leading / for file paths on Windows during license checking, by leveraging toFilePath instead of path.

Fixes #1227.

Uri
Before:
before
Before:
after

Logs
Before:
before-log
After:
after-log

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@Ascenio Ascenio requested a review from a team as a code owner January 18, 2025 23:28
Copy link
Contributor

@alestiago alestiago left a comment

Choose a reason for hiding this comment

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

Hi @Ascenio!

Thanks for raising the PR. Could you make sure to add some tests to the change?

@Ascenio
Copy link
Contributor Author

Ascenio commented Jan 22, 2025

Hi @Ascenio!

Thanks for raising the PR. Could you make sure to add some tests to the change?

I think the tests kind of are already there because the only way to test this would be to validate the whole packages check licenses command, for which there are already tests.

Just enabling the tests to run for windows would be enough.

Considering only the licenses command:
Before:
image
After:
image

Considering the whole test suite:
Before:
image
After:
image

@Ascenio
Copy link
Contributor Author

Ascenio commented Jan 22, 2025

The problem is we can't enable all of them at once or else the pipeline will break. It has to be incremental, by adding @TestOn('vm') for all files at first, and then removing it but also adding testOn: 'vm||windows for each test that was fixed to support both platforms.

@alestiago
Copy link
Contributor

alestiago commented Feb 24, 2025

Hi @Ascenio thanks for reaching back!

I would like to keep this moving forward, but it might be blocked by us (maintainers) in terms of testing and CI. The CI is currently failing due to what is seems like the synthetic package deprecation. I've made #1246 (let me know if you would like to contribute there too).

This week I will not be able to prioritize the work, but I've scheduled it for next week.

@alestiago alestiago added the p2 Important issues not at the top of the work list label Feb 24, 2025
@alestiago alestiago moved this from In Review to Needs Triage in VGV Open Source 🦄 🧙🌟 Mar 4, 2025
@marcossevilla marcossevilla merged commit 1d96cc3 into VeryGoodOpenSource:main Jun 30, 2025
30 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in VGV Open Source 🦄 🧙🌟 Jun 30, 2025
matiasleyba pushed a commit to a-wallen/very_good_cli that referenced this pull request Jul 17, 2025
* fix: remove leading slash on Windows

* chore: bring back empty line

---------

Co-authored-by: Alejandro Santiago <[email protected]>
Co-authored-by: Marcos Sevilla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2 Important issues not at the top of the work list

Projects

Development

Successfully merging this pull request may close these issues.

Trouble with CLI License Checker

3 participants