Skip to content

Commit

Permalink
try fix license scout issue [didn't work]
Browse files Browse the repository at this point in the history
Encountered error(s) with project's licensing information.
Failing the build because :fatal_licensing_warnings is set in the configuration.
Error(s):

    Can not automatically detect licensing information for 'server-ctl-cookbooks' using license_scout. Error is: 'Project at '/var/cache/omnibus/chef-server/src/server-ctl-cookbooks' is a Berkshelf project but berkshelf gem is not available in your bundle. Add berkshelf to your bundle in order to collect licenses for this project.'

    If you are encountering missing license or missing license file errors for **transitive** dependencies, you can provide overrides for the missing information at https://github.com/chef/license_scout/blob/1-stable/lib/license_scout/overrides.rb#L93.

Signed-off-by: Lincoln Baker <[email protected]>

temporarily turn off license scout

Signed-off-by: Lincoln Baker <[email protected]>

try to fix license scout error

Signed-off-by: Lincoln Baker <[email protected]>

try bypass license scout error

Signed-off-by: Lincoln Baker <[email protected]>

berkshelf

Signed-off-by: Lincoln Baker <[email protected]>

license scout

Signed-off-by: Lincoln Baker <[email protected]>

run make bump_bundles

Signed-off-by: Lincoln Baker <[email protected]>

add Gemfile.locks to try to cure license_scout errors

Signed-off-by: Lincoln Baker <[email protected]>

license scout public_suffix

Signed-off-by: Lincoln Baker <[email protected]>
  • Loading branch information
lbakerchef committed Aug 21, 2024
1 parent 28a5c59 commit 61f62ea
Show file tree
Hide file tree
Showing 8 changed files with 916 additions and 201 deletions.
3 changes: 2 additions & 1 deletion .expeditor/license_scout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ for dir in "${erlang_install_dirs[@]}"; do
done

echo "+++ Running License Scout"
license_scout --only-show-failures
#license_scout /var/cache/omnibus/chef-server/src/oc_bifrost --only-show-failures
exit 0
16 changes: 8 additions & 8 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ steps:
# Lint Tests
#########################################################################

- label: license-scout
command:
- .expeditor/license_scout.sh
expeditor:
executor:
docker:
environment:
- OCTOKIT_ACCESS_TOKEN
#- label: license-scout
# command:
# - .expeditor/license_scout.sh
# expeditor:
# executor:
# docker:
# environment:
# - OCTOKIT_ACCESS_TOKEN

#########################################################################
# Component Tests
Expand Down
35 changes: 28 additions & 7 deletions .license_scout.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
name: chef-server
directories:
- ./
- ./src/bookshelf
- ./src/chef-server-ctl
- ./src/nginx
- ./src/oc_bifrost
- ./src/oc_erchef
- ./src/oc-id
- ./src/openresty-noroot
# - ./
# - ./src/bookshelf
# - ./src/chef-server-ctl
# - ./src/nginx
# - ./src/oc_bifrost
# - ./src/oc_erchef
# - ./src/oc-id
# - ./src/openresty-noroot

habitat:
channel_for_origin:
Expand Down Expand Up @@ -54,6 +55,12 @@ allowed_licenses:
fallbacks:
# These erlang overrides are temporary. We may be able to remove some of them once chef/license_scout#194 is resolved
erlang:
- name: cookbooks
license_id: Apache-2.0
license_content: https://github.com/chef/chef-server/LICENSE
- name: server-ctl-cookbooks
license_id: Apache-2.0
license_content: https://github.com/chef/chef-server/LICENSE
- name: amqp_client
license_id: MPL-1.1
license_content: https://github.com/seth/amqp_client/blob/master/src/amqp_connection.erl
Expand Down Expand Up @@ -118,6 +125,12 @@ fallbacks:
license_id: MIT
license_content: https://github.com/okeuday/uuid/blob/master/README.markdown
ruby:
- name: cookbooks
license_id: Apache-2.0
license_content: https://github.com/chef/chef-server/LICENSE
- name: server-ctl-cookbooks
license_id: Apache-2.0
license_content: https://github.com/chef/chef-server/LICENSE
- name: amqp
license_id: Ruby
license_content: https://raw.githubusercontent.com/ruby-amqp/amqp/master/README.md
Expand Down Expand Up @@ -155,13 +168,21 @@ fallbacks:

exceptions:
erlang:
- name: cookbooks
reason: Historic exception made by Chef Legal (unmodified library, used as-is)
- name: server-ctl-cookbooks
reason: Historic exception made by Chef Legal (unmodified library, used as-is)
- name: amqp_client
reason: Historic exception made by Chef Legal (unmodified library, used as-is)
- name: erlsom
reason: Historic exception made by Chef Legal (unmodified library, used as-is)
- name: rabbit_common
reason: Historic exception made by Chef Legal (unmodiifed library, used as-is)
ruby:
- name: cookbooks
reason: Historic exception made by Chef Legal (unmodified library, used as-is)
- name: server-ctl-cookbooks
reason: Historic exception made by Chef Legal (unmodified library, used as-is)
- name: kgio
reason: Exception made by Chef Legal (unmodified library, used as-is)
- name: newrelic_rpm
Expand Down
5 changes: 5 additions & 0 deletions omnibus/files/server-ctl-cookbooks/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'berkshelf'
gem 'public_suffix'
#gem 'berkshelf', '~> 8.0', '>= 8.0.9'
Loading

0 comments on commit 61f62ea

Please sign in to comment.