Skip to content

Commit dfdda11

Browse files
authored
Merge pull request #3781 from chocolatey/hotfix/2.5.1
(release) 2.5.1
2 parents cdf658e + 6403da8 commit dfdda11

File tree

15 files changed

+130
-101
lines changed

15 files changed

+130
-101
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,9 @@ jobs:
7676
code_drop\Packages\Chocolatey\*.nupkg
7777
code_drop\MsBuild.log
7878
code_drop\MSIs\en-US\chocolatey-*.msi
79-
# - uses: coverallsapp/github-action@master
80-
# with:
81-
# github-token: ${{ secrets.GITHUB_TOKEN }}
82-
# path-to-lcov: |
83-
# code_drop\TestCoverage\lcov.info
84-
# flag-name: run-${{ matrix.os }}
85-
# parallel: true
8679
# Build using mono on MacOS
8780
macos-build:
88-
runs-on: macos-latest
81+
runs-on: macos-14
8982
steps:
9083
- uses: actions/checkout@v3
9184
with:
@@ -118,11 +111,6 @@ jobs:
118111
uses: actions/checkout@v3
119112
with:
120113
fetch-depth: 0
121-
- name: Cache Tools
122-
uses: actions/cache@v4
123-
with:
124-
path: tools
125-
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
126114
- name: Set up QEMU
127115
uses: docker/setup-qemu-action@v2
128116
- name: Set up Docker Buildx
@@ -134,19 +122,3 @@ jobs:
134122
file: docker/Dockerfile.linux
135123
push: false
136124
tags: chocolatey/choco:latest
137-
build-args: |
138-
"github_actions=true"
139-
"github_ref=${{ github.ref }}"
140-
"github_repository=${{ github.repository }}"
141-
"github_base_ref=${{ github.base_ref }}"
142-
"github_head_ref=${{ github.head_ref }}"
143-
"github_run_number=${{ github.run_number }}"
144-
#upload-code-coverage-results:
145-
# needs: [ubuntu-build, windows-build, macos-build]
146-
# runs-on: ubuntu-latest
147-
# steps:
148-
# - name: Coveralls Finished
149-
# uses: coverallsapp/github-action@master
150-
# with:
151-
# github-token: ${{ secrets.GITHUB_TOKEN }}
152-
# parallel-finished: true

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
code_drop\MsBuild.log
7272
# Build and test using mono on MacOS
7373
macos-build:
74-
runs-on: macos-latest
74+
runs-on: macos-14
7575
steps:
7676
- uses: actions/checkout@v3
7777
with:

docker/Dockerfile.linux

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
1-
ARG monoversion="6.12"
2-
FROM mono:${monoversion} as build
1+
FROM debian:bookworm AS build
32

4-
ARG github_actions="false"
5-
ARG github_ref
6-
ARG github_repository
7-
ARG github_base_ref
8-
ARG github_head_ref
9-
ARG github_run_number
3+
RUN apt update; \
4+
apt install gnupg dirmngr apt-transport-https ca-certificates -y; \
5+
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF; \
6+
sh -c 'echo "deb https://download.mono-project.com/repo/debian stable-buster main" > /etc/apt/sources.list.d/mono-official-stable.list'
107

11-
ENV GITHUB_REF=$github_ref
12-
ENV GITHUB_REPOSITORY=$github_repository
13-
ENV GITHUB_BASE_REF=$github_base_ref
14-
ENV GITHUB_HEAD_REF=$github_head_ref
15-
ENV GITHUB_RUN_NUMBER=$github_run_number
16-
17-
RUN echo deb http://archive.debian.org/debian buster-backports main | tee /etc/apt/sources.list.d/buster-backports.list; \
18-
apt-get update && apt-get install -t buster-backports git -y
8+
RUN apt update; \
9+
apt install git mono-complete curl -y
1910

2011
RUN curl -o packages-microsoft-prod.deb https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb; \
2112
dpkg -i packages-microsoft-prod.deb; \
@@ -29,10 +20,7 @@ RUN chmod +x *.sh
2920

3021
ARG buildscript="build.sh"
3122

32-
RUN if [ "$github_actions" = "true" ]; then \
33-
export GITHUB_ACTIONS=$github_actions; \
34-
fi; \
35-
if [ "$buildscript" = "build.official.sh" ]; then \
23+
RUN if [ "$buildscript" = "build.official.sh" ]; then \
3624
export CHOCOLATEY_OFFICIAL_KEY="/usr/local/src/choco/chocolatey.official.snk"; \
3725
./$buildscript; \
3826
cp docker/choco_official_wrapper code_drop/temp/_PublishedApps/choco/choco_wrapper; \
@@ -42,10 +30,16 @@ RUN if [ "$github_actions" = "true" ]; then \
4230
fi;
4331

4432

45-
ARG monoversion="6.12"
46-
FROM mono:${monoversion} as install
33+
FROM debian:bookworm AS install
34+
35+
RUN apt update; \
36+
apt install gnupg dirmngr apt-transport-https ca-certificates -y; \
37+
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF; \
38+
sh -c 'echo "deb https://download.mono-project.com/repo/debian stable-buster main" > /etc/apt/sources.list.d/mono-official-stable.list'
39+
40+
RUN apt update; \
41+
apt install mono-complete -y
4742

48-
ARG monoversion="6.12"
4943
LABEL org.opencontainers.image.url="https://chocolatey.org/"
5044
LABEL org.opencontainers.image.documentation="https://docs.chocolatey.org/"
5145
LABEL org.opencontainers.image.source="https://github.com/chocolatey/choco"
@@ -54,9 +48,9 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
5448
LABEL org.opencontainers.image.title="Chocolatey"
5549
LABEL org.opencontainers.image.description="Chocolatey Client running on Mono"
5650
LABEL org.opencontainers.image.authors="https://chocolatey.org/support"
57-
LABEL org.opencontainers.image.base.name="index.docker.io/library/mono:${monoversion}"
51+
LABEL org.opencontainers.image.base.name="index.docker.io/library/debian:bookworm"
5852

59-
ENV ChocolateyInstall /opt/chocolatey
53+
ENV ChocolateyInstall=/opt/chocolatey
6054

6155
COPY --from=build /usr/local/src/choco/code_drop/temp/_PublishedApps/choco /opt/chocolatey
6256

docker/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ To build the Linux image yourself, follow these steps:
2222
1. Run the docker build command. `docker build -t choco:latest-linux -f docker/Dockerfile.linux .` (the trailing . is important)
2323
* To build a official version, use this command: `docker build -t chocolatey/choco:latest-linux -f docker/Dockerfile.linux . --build-arg buildscript=build.official.sh`
2424
* To build a debug version, add the argument `--build-arg buildscript=build.debug.sh`
25-
* To change the version of mono used, add the argument `--build-arg monoversion=mono-tag`
2625
1. Run your new image using the command `docker run -ti --rm choco:latest-linux /bin/bash`
2726
1. Test choco by running `choco -h`. You should see the help message from choco.exe.
2827

docs/legal/CREDITS.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"link": "https://github.com/chocolatey/choco",
55
"licenseName": "LICENSE",
66
"licenseLink": "https://github.com/chocolatey/choco/blob/master/LICENSE",
7-
"version": "2.5.0",
7+
"version": "2.5.1",
88
"dependencies": [
99
{
1010
"name": "7-Zip",
1111
"link": "https://www.7-zip.org/",
12-
"version": "24.09",
12+
"version": "25.01",
1313
"licenses": [
1414
{
1515
"type": "OTHER",

docs/legal/CREDITS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Chocolatey uses a number of 3rd party components. Their details are below.
2929
* [[email protected]](#systemruntimecompilerservicesunsafe453)
3030
* [[email protected]](#systemthreadingtasksextensions454)
3131
* [Other](#other)
32-
* [7-Zip@24.09](#7-zip2409)
32+
* [7-Zip@25.01](#7-zip2501)
3333
* [Shim Generator (shimgen)@2.0.0](#shim-generator-\(shimgen\)200)
3434

3535
## Open Source License Types (Reference)
@@ -339,15 +339,15 @@ https://www.apache.org/licenses/LICENSE-2.0
339339

340340
341341

342-
[System.Runtime.CompilerServices.Unsafe](https://www.nuget.org/packages/System.Runtime.CompilerServices.Unsafe/4.5.3) - [License terms.](https://github.com/dotnet/corefx/blob/master/LICENSE.TXT)
342+
[System.Runtime.CompilerServices.Unsafe](https://www.nuget.org/packages/System.Runtime.CompilerServices.Unsafe/4.5.3) - [License terms.](https://github.com/dotnet/corefx/blob/b8b81a66738bb10ef0790023598396861d92b2c4/LICENSE.TXT)
343343

344344
345345

346-
[System.Threading.Tasks.Extensions](https://www.nuget.org/packages/System.Threading.Tasks.Extensions/4.5.4) - [License terms.](https://github.com/dotnet/corefx/blob/master/LICENSE.TXT)
346+
[System.Threading.Tasks.Extensions](https://www.nuget.org/packages/System.Threading.Tasks.Extensions/4.5.4) - [License terms.](https://github.com/dotnet/corefx/blob/b8b81a66738bb10ef0790023598396861d92b2c4/LICENSE.TXT)
347347

348348
### Other
349349

350-
#### 7-Zip@24.09
350+
#### 7-Zip@25.01
351351

352352
[7-Zip](https://www.7-zip.org/) - [License terms.](https://www.7-zip.org/license.txt)
353353

docs/legal/CREDITS.pdf

3.66 KB
Binary file not shown.
1.5 KB
Binary file not shown.
7.5 KB
Binary file not shown.

src/chocolatey.resources/tools/7zip.license.txt

Lines changed: 94 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
License for use and distribution
44
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55

6-
7-Zip Copyright (C) 1999-2023 Igor Pavlov.
6+
7-Zip Copyright (C) 1999-2025 Igor Pavlov.
77

88
The licenses for files are:
99

10-
1) 7z.dll:
10+
- 7z.dll:
1111
- The "GNU LGPL" as main license for most of the code
1212
- The "GNU LGPL" with "unRAR license restriction" for some code
1313
- The "BSD 3-clause License" for some code
14-
2) All other files: the "GNU LGPL".
14+
- The "BSD 2-clause License" for some code
15+
- All other files: the "GNU LGPL".
1516

1617
Redistributions in binary form must reproduce related license information from this file.
1718

@@ -20,8 +21,8 @@
2021
organization. You don't need to register or pay for 7-Zip.
2122

2223

23-
GNU LGPL information
24-
--------------------
24+
GNU LGPL information
25+
--------------------
2526

2627
This library is free software; you can redistribute it and/or
2728
modify it under the terms of the GNU Lesser General Public
@@ -39,52 +40,107 @@
3940

4041

4142

42-
BSD 3-clause License
43-
--------------------
43+
BSD 3-clause License in 7-Zip code
44+
----------------------------------
4445

45-
The "BSD 3-clause License" is used for the code in 7z.dll that implements LZFSE data decompression.
46-
That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
47-
that also uses the "BSD 3-clause License":
46+
The "BSD 3-clause License" is used for the following code in 7z.dll
47+
1) LZFSE data decompression.
48+
That code was derived from the code in the "LZFSE compression library" developed by Apple Inc,
49+
that also uses the "BSD 3-clause License".
50+
2) ZSTD data decompression.
51+
that code was developed using original zstd decoder code as reference code.
52+
The original zstd decoder code was developed by Facebook Inc,
53+
that also uses the "BSD 3-clause License".
4854

49-
----
50-
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
55+
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
56+
Copyright (c) Facebook, Inc. All rights reserved.
57+
Copyright (c) 2023-2025 Igor Pavlov.
5158

52-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
59+
Text of the "BSD 3-clause License"
60+
----------------------------------
5361

54-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
62+
Redistribution and use in source and binary forms, with or without modification,
63+
are permitted provided that the following conditions are met:
5564

56-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
57-
in the documentation and/or other materials provided with the distribution.
65+
1. Redistributions of source code must retain the above copyright notice, this
66+
list of conditions and the following disclaimer.
5867

59-
3. Neither the name of the copyright holder(s) nor the names of any contributors may be used to endorse or promote products derived
60-
from this software without specific prior written permission.
68+
2. Redistributions in binary form must reproduce the above copyright notice,
69+
this list of conditions and the following disclaimer in the documentation
70+
and/or other materials provided with the distribution.
6171

62-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
63-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
64-
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
65-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
67-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
68-
----
72+
3. Neither the name of the copyright holder nor the names of its contributors may
73+
be used to endorse or promote products derived from this software without
74+
specific prior written permission.
6975

76+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
77+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
78+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
79+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
80+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
81+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
82+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
83+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
84+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
85+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7086

87+
---
7188

7289

73-
unRAR license restriction
74-
-------------------------
7590

76-
The decompression engine for RAR archives was developed using source
77-
code of unRAR program.
78-
All copyrights to original unRAR code are owned by Alexander Roshal.
7991

80-
The license for original unRAR code has the following restriction:
92+
BSD 2-clause License in 7-Zip code
93+
----------------------------------
8194

82-
The unRAR sources cannot be used to re-create the RAR compression algorithm,
83-
which is proprietary. Distribution of modified unRAR sources in separate form
84-
or as a part of other software is permitted, provided that it is clearly
85-
stated in the documentation and source comments that the code may
86-
not be used to develop a RAR (WinRAR) compatible archiver.
95+
The "BSD 2-clause License" is used for the XXH64 code in 7-Zip.
8796

97+
XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet.
8898

89-
--
90-
Igor Pavlov
99+
Copyright (c) 2012-2021 Yann Collet.
100+
Copyright (c) 2023-2025 Igor Pavlov.
101+
102+
Text of the "BSD 2-clause License"
103+
----------------------------------
104+
105+
Redistribution and use in source and binary forms, with or without modification,
106+
are permitted provided that the following conditions are met:
107+
108+
1. Redistributions of source code must retain the above copyright notice, this
109+
list of conditions and the following disclaimer.
110+
111+
2. Redistributions in binary form must reproduce the above copyright notice,
112+
this list of conditions and the following disclaimer in the documentation
113+
and/or other materials provided with the distribution.
114+
115+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
116+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
117+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
118+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
119+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
120+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
121+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
122+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
123+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
124+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
125+
126+
---
127+
128+
129+
130+
131+
unRAR license restriction
132+
-------------------------
133+
134+
The decompression engine for RAR archives was developed using source
135+
code of unRAR program.
136+
All copyrights to original unRAR code are owned by Alexander Roshal.
137+
138+
The license for original unRAR code has the following restriction:
139+
140+
The unRAR sources cannot be used to re-create the RAR compression algorithm,
141+
which is proprietary. Distribution of modified unRAR sources in separate form
142+
or as a part of other software is permitted, provided that it is clearly
143+
stated in the documentation and source comments that the code may
144+
not be used to develop a RAR (WinRAR) compatible archiver.
145+
146+
--

0 commit comments

Comments
 (0)