-
Notifications
You must be signed in to change notification settings - Fork 340
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
Does not work with latest version of yarn #912
Comments
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
I've since found that license_finder is meant to add a plugin
When I added it myself, it then didn't error, but I get this output:
I've tried it with Having dug into the code a bit more, it seems like this will only work for The JSON structure from v1 returns a
With the plugin that tries to get installed, the JSON structure is actually multiple lines of JSON, 1 for each license group, with the structure
With the v1 structure, it's going through the if block (
data property, it will never match.
|
hey @gigaSproule ! I think we put a PR in for this months ago here: #891. It should be making adjustments based on your yarn version. If you look in the yarn.rb file, there is logic to check the version based on
if the version is >1. The production command only gets adding to the yarn install if ignored groups includes
Does this help at all? Let me know! |
@xtreme-shane-lattanzio sorry for taking so long to get back to you. I've tried upgrading |
Hey @gigaSproule ! I think you are right. When we tested this I think it was more about fixing yarn2 causing yarn1 issues but we never tested with a yarn 2 project. I am confirming this but we may need a PR to not only change the yarn command on the version but also change the json parsing |
@gigaSproule Alright I tried on this dummy repo and something is definitely wrong: https://github.com/yarnpkg/example-yarn-package I ran with v1 and got the full output. When updating to 3.2.2, I get
This looks to be more than a parsing issue because this output is the stdout from the
I'm not sure when I will have time to look into this but if you can put up a PR, I can take a look and it may be faster. Thanks for bringing this up either way. |
Yeah, I saw the same sort of thing. I should have pasted the output from our project, so sorry about that. I'll try it again and update here to ensure I'm getting the same format. As with you, I'm time poor 😉 I'll have to see if I can get a bit of time together to have a crack at it. |
I took a stab at it with some guesses. Let me know what you think! #936 |
I went into more depth about this on the PR, but basically transitive dependencies should be checked by passing |
@xtreme-shane-lattanzio, the significant functionality you added seems worthy of a release if time allows. |
This still doesn't work for yarn 4. Can the |
I suggest filing a new issue for greater visibility and installing the needed plugin yourself in the meantime. |
I've tried upgrading to the latest version of yarn from yarn v1, but it seems that the
licenses
command has been removed from yarn core. Obviously, no command means no data, but I'm not seeing any mention of yarn 2/3 not being supported. Is there something that I'm missing?This is the stacktrace from the run within the
licensefinder/license_finder:7.0.1
docker container:Yarn version is 3.2.1, node version is 14.19.1.
The text was updated successfully, but these errors were encountered: