What happened:
grant does not return any result for LICENSE file in directory
What you expected to happen:
grant should find license in LICENSE file and list data
Steps to reproduce the issue:
- Clone grant github repository
- Run:
grant list dir:<repo dir>
- Copy
LICENSE to another empty directory
- Run:
grant list dir:<dir>
Anything else we need to know?:
(2) For v0.1.1 grant returns:
* src/
* Apache License 2.0
* Apache-2.0
* BSD 2-Clause "Simplified" License
* BSD 3-Clause "New" or "Revised" License
* BSD-2-Clause
* BSD-3-Clause
* GNU General Public License v2.0 only
* GNU General Public License v2.0 or later
* GPL-2.0-only
* GPL-2.0-or-later
* GPL-3.0
* MIT
* MIT License
* MPL-2.0
* Mozilla Public License 2.0
* Zlib
* zlib License
(4) For v0.1.1 grant returns:
grant v0.6.2 returns:
(2)
grant list dir:src/grant/
✔ Loaded dir:src/grant/ image
✔ License listing
✔ Cataloged contents
├── ✔ Packages [319 packages]
├── ✔ Licenses [0 unique]
└── ✔ File metadata [319 locations]
✔ Aggregated licenses [grouped by license, desc by count]
LICENSE PACKAGES RISK
(no licenses found) 309 Unknown
(4)
grant list dir:repo/
✔ Loaded dir:repo/ image
✔ License listing
✔ Cataloged contents
├── ✔ Packages [0 packages]
├── ✔ Licenses [0 unique]
└── ✔ File metadata [0 locations]
✔ Aggregated licenses [grouped by license, desc by count]
LICENSE PACKAGES RISK
Environment:
- Output of
grant version:
- OS (e.g:
cat /etc/os-release or similar): RHEL9
What happened:
grant does not return any result for
LICENSEfile in directoryWhat you expected to happen:
grant should find license in
LICENSEfile and list dataSteps to reproduce the issue:
grant list dir:<repo dir>LICENSEto another empty directorygrant list dir:<dir>Anything else we need to know?:
(2) For v0.1.1 grant returns:
(4) For v0.1.1 grant returns:
grant v0.6.2 returns:
(2)
(4)
Environment:
grant version:cat /etc/os-releaseor similar): RHEL9