Skip to content

Commit

Permalink
Validate dependencies licenses (#836)
Browse files Browse the repository at this point in the history
* Add check-licenses-go-mod to Makefile using go-licenses

* Add check-licenses-npm to Makefile using senseyeio/diligent

* Add check-licenses to Makefile

* Update base-64 version to 1.0.0
  • Loading branch information
daniel-shuy authored Oct 20, 2020
1 parent d312bce commit 0b2f3ba
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ all: build
clean:
@rm -rf $(API_BUILD_DIR) $(UI_BUILD_DIR) ddl/statik.go statik $(LAKEFS_BINARY_NAME) $(LAKECTL_BINARY_NAME)

check-licenses: check-licenses-go-mod check-licenses-npm

check-licenses-go-mod:
go get github.com/google/go-licenses
$(GOBINPATH)/go-licenses check ./cmd/$(LAKEFS_BINARY_NAME)
$(GOBINPATH)/go-licenses check ./cmd/$(LAKECTL_BINARY_NAME)

check-licenses-npm:
go get github.com/senseyeio/diligent/cmd/diligent
# The -i arg is a workaround to ignore NPM scoped packages until https://github.com/senseyeio/diligent/issues/77 is fixed
$(GOBINPATH)/diligent check -w permissive -i ^@[^/]+?/[^/]+ $(UI_DIR)

docs/assets/js/swagger.yml: swagger.yml
@cp swagger.yml docs/assets/js/swagger.yml

Expand Down
6 changes: 3 additions & 3 deletions webui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@testing-library/react": "^10.4.8",
"@testing-library/user-event": "^10.3.1",
"acorn": ">=7.1.1",
"base-64": "^0.1.0",
"base-64": "^1.0.0",
"bootstrap": "^4.5.2",
"bootswatch": "^4.5.2",
"http-proxy-middleware": "^1.0.5",
Expand Down

0 comments on commit 0b2f3ba

Please sign in to comment.