-
Notifications
You must be signed in to change notification settings - Fork 210
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
Chef 11677/chef 12498/lbaker erlang upgrade #3877
Open
lbakerchef
wants to merge
8
commits into
main
Choose a base branch
from
CHEF-11677/CHEF-12498/lbaker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e43138a
Update to Erlang 26.2.5.2
lbakerchef e5696bc
Point to LTS channel for core deps
RoyShravani 6e12ad2
Point to updated dependencies
lbakerchef d7614f2
changing ruby version from 3.0 to 3.4 preview.
talktovikas 2e28f9d
changes for making bookshelf hab package.
talktovikas 8c23983
openresty-noroot for LTS-2024
talktovikas d295d87
chef-server-ctl hab package for LTS-2024
jashaik 923f57d
Updated sqitch version.
sreepuramsudheer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
--- | ||
env: | ||
HAB_BLDR_CHANNEL: "LTS-2024" | ||
HAB_STUDIO_SECRET_HAB_FALLBACK_CHANNEL: "LTS-2024" | ||
HAB_FALLBACK_CHANNEL: "LTS-2024" | ||
|
||
origin: chef | ||
smart_build: false | ||
studio_secrets: | ||
HAB_BLDR_CHANNEL: | ||
value: "LTS-2024" | ||
HAB_STUDIO_SECRET_HAB_FALLBACK_CHANNEL: | ||
value: "LTS-2024" | ||
HAB_FALLBACK_CHANNEL: | ||
value: "LTS-2024" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 +129,4 @@ artifact_channels: | |
- unstable | ||
- current | ||
- stable | ||
- LTS-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# | ||
# Copyright 2014 Chef Software, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
name "sqitch" | ||
default_version "1.4.1" | ||
|
||
skip_transitive_dependency_licensing true | ||
|
||
license "MIT" | ||
license_file "https://raw.githubusercontent.com/theory/sqitch/master/README.md" | ||
|
||
dependency "perl" | ||
dependency "cpanminus" | ||
|
||
# install a LGPL-licensed version of libintl-perl: | ||
dependency "libintl-perl" | ||
|
||
# version_list: url=https://github.com/theory/#{name}/releases/download/v#{version}/ filter=app-sqitch-*.tar.gz | ||
version("1.4.1") { source sha256: "caf31cc8f772e3a4c9d4b3ff3a8f684a6eb5b1b3c261f4ddc0f90a88c36007c6" } | ||
version("1.4.0") { source sha256: "b0db387031f77562662e003bc55d7a102a26380b4ad7fdb9a8a3bad5769e501c" } | ||
version("1.3.1") { source sha256: "f5e768d298cd4047ee2ae42319782e8c2cda312737bcbdbfaf580bd47efe8b94" } | ||
version("1.3.0") { source sha256: "7d07635ec77a7faf3c50281c76ec833c68702f14470996cb2203a8bc6abc5bf2" } | ||
version("1.2.1") { source sha256: "020835a13429effd8fda12d5627604ecf99293775918f4f8ba9ccc5ed796e5e7" } | ||
version("1.1.0") { source sha256: "ee146cd75d6300837e6ca559bb0bde247d42123c96b2c5d4b2800f38d3e3d1ab" } | ||
version("0.9999") { source sha256: "f5bfa80206738ab8a70358a3b0557661c7459e11ec07dece23ecafa1f34372b3" } | ||
version("0.973") { source sha256: "95fc7f18fff786c5d2579133e2e3ac56779e54bb3a06a1af1117054e9f49ab32" } | ||
|
||
if version >= "1.1.0" | ||
source url: "https://github.com/theory/#{name}/releases/download/v#{version}/app-sqitch-v#{version}.tar.gz" | ||
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz", | ||
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}" | ||
relative_path "App-Sqitch-v#{version}" | ||
else | ||
source url: "https://github.com/theory/#{name}/releases/download/v#{version}/app-sqitch-#{version}.tar.gz" | ||
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz", | ||
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}" | ||
relative_path "App-Sqitch-#{version}" | ||
end | ||
|
||
# See https://github.com/theory/sqitch for more | ||
build do | ||
env = with_standard_compiler_flags(with_embedded_path) | ||
# Lists-MoreUtils-XS does not build on RHEL 5 or SUSE 11 currently. | ||
# This option is used by the Lists-MoreUtils build configuration to | ||
# decide whether to use the -XS package or a pure perl | ||
# implementation. | ||
env["PERL_MM_OPT"] = "PUREPERL_ONLY=1" | ||
command "perl Build.PL", env: env | ||
command "./Build installdeps --cpan_client 'cpanm -v --notest'", env: env | ||
command "./Build", env: env | ||
command "./Build install", env: env | ||
|
||
# Here is another licensing fun. Some of the dependencies of sqitch | ||
# unfortunately have GPL3 and LGPL3 licenses which are requiring us to remove | ||
# them from our packages after installing sqitch. Here we are uninstalling | ||
# them without breaking the licensing information collection. | ||
%w{Test-MockModule}.each do |package_name| | ||
module_name = package_name.gsub("-", "::") | ||
|
||
# Here we run cpanm --uninstall with a different PERL_CPANM_HOME. The reason | ||
# for this is to keep the licensing information for sqitch intact. The way | ||
# license_scout works is to look into PERL_CPANM_HOME/latest-build (by | ||
# default ~/.cpanm/latest-build) which contains the modules installed during | ||
# the last install. This directory is a symlink that points to the directory | ||
# contains the information about the latest build. Without changing | ||
# PERL_CPANM_HOME we would overwrite the link and will not be able to | ||
# collect the dependencies installed to our package while doing the actual | ||
# sqitch install. | ||
Dir.mktmpdir do |tmpdir| | ||
command "cpanm --force --uninstall #{module_name}", env: env.merge({ | ||
"PERL_CPANM_HOME" => tmpdir, | ||
}) | ||
end | ||
|
||
# Here we are removing the problematic package from the original | ||
# PERL_CPANM_HOME cache directory. This ensures that we do not add | ||
# licensing information about these components to our package. | ||
cpanm_root = File.expand_path("~/.cpanm/latest-build") | ||
delete "#{cpanm_root}/#{package_name}*" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Use of `Kernel.open` or `IO.read` or similar sinks with a non-constant value Critical
Copilot Autofix AI 2 days ago
To fix the problem, we need to replace the usage of
IO.read
withFile.read
. This change will ensure that the file is read without the risk of executing arbitrary shell commands. The functionality of the code will remain the same, asFile.read
andIO.read
both read the contents of a file.The specific change required is in the
oc-chef-pedant/Gemfile
file, where we need to replaceIO.read(__FILE__ + '.local')
withFile.read(__FILE__ + '.local')
.