LicenseFinder icon indicating copy to clipboard operation
LicenseFinder copied to clipboard

Subprojects do not respect --decisions-file (at least for NPM)

Open nkoterba opened this issue 9 years ago • 3 comments

Have a directory with:

--- package.json
+-- doc
    --- dependency_decisions.yml
+-- src
     +--- module1
          --- package.json 

My dependency_decisions.yml file excludes npm "devDependencies":

- - :ignore_group
  - devDependencies
  - :who: 
    :why: 
    :when: 2015-07-30 01:49:51.659344000 Z

However, when I run the following command, the "devDependencies" are not ignored.

license_finder report --subprojects=./src/module1 --decisions-file=./doc/dependency_decisions.yml

The above command, when executed, will list all the dependencies in src/module, including devDependencies. It appears that --subprojects is not respecting the decisions file.

nkoterba avatar Aug 03 '15 21:08 nkoterba

Thanks for reporting this! I haven't reproduced this yet, but I totally believe it's happening, looking at the code. I'll dig in.

flavorjones avatar Dec 31 '15 18:12 flavorjones

I have the same problem. When I run the following command,the "devDependencies" are not ignored.

license_finder --project-path=plugins/questionnaire --decisions-file=license_finder/doc/dev-decisions.yml

There is only one option(previous one) effected. Could you help me, thank you very much!

h000780 avatar Oct 08 '21 09:10 h000780

@h000780 Is your issue related to https://github.com/pivotal/LicenseFinder/issues/888? Just trying to understand whats going on and its hard without clean repro steps

xtreme-shane-lattanzio avatar Mar 10 '22 15:03 xtreme-shane-lattanzio