Skip to content
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

Add Go module support, cleanup Makefile #266

Merged
merged 7 commits into from
Mar 7, 2019

Conversation

cpu
Copy link
Member

@cpu cpu commented Mar 7, 2019

This branch adds support for Go modules and cleans up a little bit. At a high level:

  • Added zlint-gtld-update to the build artifacts
  • Fixed an import case sensitivity problem that blocked go module support
  • Cleaned up the makefile
  • Added Go module support
  • Vendored dependencies

Resolves #264

@cpu cpu self-assigned this Mar 7, 2019
@cpu cpu requested review from dadrian and zakird March 7, 2019 20:00
module github.com/zmap/zlint

require (
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf
Copy link
Member Author

@cpu cpu Mar 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this dependency is only present because govalidator.IsURL is being used in util/fqdn.go. Similarly zcrypto carries a govalidator dep just for IsURL.

It might be nice to knock a dependency off of both projects by implementing this one function in zcrypto.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened zmap/zcrypto#187 on zcrypto for this.

@zakird zakird merged commit 9c9f067 into zmap:master Mar 7, 2019
@zakird
Copy link
Member

zakird commented Mar 7, 2019

I agree regarding implementing IsURL, but I'm going to merge for the sake of forward progress. We can remove the dependency at a later date.

@cpu cpu deleted the cpu-go-go-gadget-go-mod branch March 7, 2019 23:28
aaomidi pushed a commit to aaomidi/zlint that referenced this pull request Nov 29, 2022
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.

3 participants