Skip to content
Snippets Groups Projects
Commit 64b541f87b9f authored by DJ Mountney's avatar DJ Mountney
Browse files

Only enable Go related license checks for gitlab-pages

The gitlab-pages upstream recently introduced dangerbot. The
gems are not in the production group, but the build process
never actually runs bundler because gitlab-pages is written
in pure Go. This caused license-finder to fail repeatedly
attempting to check the licenses for the dangerbot gem when
it was not actually part of the build at all. This configures
license-finder to only check licenses for Go dependencies
when building gitlab-pages.

Related https://gitlab.com/gitlab-com/gl-infra/production/-/issues/6841
parent 0dc91dc8a954
No related branches found
No related tags found
2 merge requests!71heptapod#685: making 0.32 the new stable,!69GitLab 14.10 / Heptapod 0.32
......@@ -36,6 +36,6 @@
make 'gitlab-pages', env: env
move 'gitlab-pages', "#{install_dir}/embedded/bin/gitlab-pages"
command "license_finder report --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
command "license_finder report --enabled-package-managers godep gomodules dep --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json"
copy "license.json", "#{install_dir}/licenses/gitlab-pages.json"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment