Releases: Cantido/hex_licenses
v0.3.3
v0.3.2 - More Bugfixes
Fixed
- No longer throws a
FunctionClauseError
when the target project has a non-Hex dependency [#2]. - No longer throws a
MatchError
when the target project does not have:package
or:licenses
defined.
v0.3.1 - Fix LoadError
Fixed
- No longer throws a
Code.LoadError
when trying to find the cached licenses file (#1).
The Local Update
After some fabulous feedback, I've been able to change the tasks to get all their information locally. We're getting license info directly from the hex metadata file in deps/
, so now you get feedback on the exact versions of the dependencies you're using.
Since we're now caching a version of the SPDX license list locally, it's possible that this may become out-of-date. However, the SPDX list does not change very often, so this is a good trade-off. If the list does update and you need that new information, give the --update
flag to any task in order to pull fresh data.
I also made the remaining two prod dependencies optional, because they are now only used for the --update
flag and nothing else. Might as well try to keep the number of dependencies down.
Added
- All tasks now accept the
--update
flag to pull down a fresh copy of the license list instead of using the version checked into this repo.
Changed
- No longer makes HTTP calls to Hex and SPDX, and instead uses locally-available information.
httpoison
andpoison
deps are now optional, since using--update
is optional.
v0.2.0
Added
mix licenses.lint
now accepts the--reuse
flag for if you are following the REUSE specification and you want to check if your declared licenses match those in theLICENSES/
directory.
Changed
- All tasks no longer return error codes when licenses are not OSI-approved. That functionality now requires the
--osi
flag to be provided.
Initial Release
This initial release introduces three mix tasks:
mix licenses
- Summarize dependency licensesmix licenses.explain
- Show unrecognized and non-approved licensesmix licenses.lint
- Ensure a project has recognized license identifiers