Skip to content

deps: remove govalidator dep by adopting IsURL.#199

Merged
zakird merged 1 commit intozmap:masterfrom
cpu:cpu-one-less-dep
Jul 26, 2019
Merged

deps: remove govalidator dep by adopting IsURL.#199
zakird merged 1 commit intozmap:masterfrom
cpu:cpu-one-less-dep

Conversation

@cpu
Copy link
Copy Markdown
Member

@cpu cpu commented Jul 26, 2019

Since the MIT and Apache licenses are compatible the zcrypto project can avoid a larger dependency on the entire github.com/asaskevich/govalidator library by simply adopting the one function used: IsURL.

This commit places that function in util/isURL.go with the original MIT license header, removes the dependency on govalidator and updates the zcrypto LICENSE file to reference the MIT license for
util/isURL.go similar to the manner that the adopted Google code's license is referenced.

IANAL but I believe this is all copacetic.

Resolves #187

Since the MIT and Apache licenses are compatible[0] the `zcrypto`
project can avoid a larger dependency on the entire
`github.com/asaskevich/govalidator` library by simply adopting the
one function used: `IsURL`.

This commit places that function in `util/isURL.go` with the original
MIT license header, removes the dependency on `govalidator` and updates
the `zcrypto` LICENSE file to reference the MIT license for
`util/isURL.go` similar to the manner that the adopted Google code's
license is referenced.

IANAL but I believe this is all copacetic.

[0]: https://law.stackexchange.com/questions/6081/can-i-bundle-mit-licensed-components-in-a-apache-2-0-licensed-project
@cpu cpu force-pushed the cpu-one-less-dep branch from 55b391f to 2b65df2 Compare July 26, 2019 16:56
@zakird zakird merged commit 6da6ff3 into zmap:master Jul 26, 2019
@cpu cpu deleted the cpu-one-less-dep branch July 26, 2019 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement IsURL util func, remove govalidator dependency

2 participants