Skip to content

Commit 8ddadd7

Browse files
patch release for recent fixes (#1241)
updates for patch release --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8b1d067 commit 8ddadd7

File tree

16 files changed

+86
-23
lines changed

16 files changed

+86
-23
lines changed

.all-contributorsrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"contributions": [
1919
"bug",
2020
"doc",
21-
"code"
21+
"code",
22+
"example",
23+
"platform"
2224
]
2325
},
2426
{
@@ -29,7 +31,9 @@
2931
"contributions": [
3032
"bug",
3133
"doc",
32-
"code"
34+
"code",
35+
"example",
36+
"platform"
3337
]
3438
},
3539
{

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
single-header:
1313
name: Single header
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write # Grant write permission for contents to upload artifacts
1517
steps:
1618
- uses: actions/checkout@v4
1719
with:

.github/workflows/freebsd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest

.github/workflows/fuzz.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
quick_fuzz1:
1518
name: quickfuzz1

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ repos:
4545
args: [--prose-wrap=always]
4646

4747
- repo: https://github.com/markdownlint/markdownlint
48-
rev: v0.12.0
48+
rev: v0.13.0
4949
hooks:
5050
- id: markdownlint
51-
args: ["--style=scripts/mdlint_style.rb"]
52-
# Uncomment on macOS - Apple has deprecated Ruby, so macOS is stuck on 2.6
53-
# language_version: 3.1.2
51+
args: [-s, ./scripts/.markdownlintrc]
5452

5553
# - repo: local
5654
# hooks:

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
## Unreleased
44

5+
## Version 2.6.1
6+
7+
Patch fixing some compile issues in specific situations in the recent release,
8+
and a potential segmentation fault from specially crafted config files
9+
10+
### Added
11+
12+
- Added CI tests for install and package management on macos-arm64 [#1238][]
13+
14+
### Fixed
15+
16+
- Fixed incorrect links to validator examples. [#1239][]
17+
- Fixed incorrect inclusion of definition for extra validators [#1238][]
18+
- Fixed fuzz generated failure from crafted files introduced in recent release
19+
[#1238][]
20+
21+
[#1238]: https://github.com/CLIUtils/CLI11/pull/1238
22+
[#1239]: https://github.com/CLIUtils/CLI11/pull/1239
23+
524
## Version 2.6.0
625

726
This version adds finer grained control of when option callbacks are executed,

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.14...4.0)
1+
cmake_minimum_required(VERSION 3.14...4.1)
22
# Note: this is a header only library. If you have an older CMake than 3.14,
33
# just add the CLI11/include directory and that's all you need to do.
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ int wmain(int argc, wchar_t *argv[]) {
15791579
```
15801580
15811581
3\. Retrieve arguments yourself by using Windows APIs like
1582-
[`CommandLineToArgvW`](https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw)
1582+
[CommandLineToArgvW](https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw)
15831583
and pass them to CLI. This is what the library is doing under the hood in
15841584
`ensure_utf8`.
15851585

include/CLI/Version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define CLI11_VERSION_MAJOR 2
1414
#define CLI11_VERSION_MINOR 6
15-
#define CLI11_VERSION_PATCH 0
16-
#define CLI11_VERSION "2.6.0"
15+
#define CLI11_VERSION_PATCH 1
16+
#define CLI11_VERSION "2.6.1"
1717

1818
// [CLI11:version_hpp:end]

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ if use_precompiled
7272
'CLI11',
7373
'src/Precompile.cpp',
7474
include_directories : CLI11_inc,
75-
cpp_args : ['-DCLI11_COMPILE'],
75+
cpp_args : ['-DCLI11_COMPILE -DCLI11_ENABLE_EXTRA_VALIDATORS=1'],
7676
install : true,
7777
)
7878

7979
pkg = import('pkgconfig')
80-
pkg.generate(libcli11, extra_cflags: ['-DCLI11_COMPILE'])
80+
pkg.generate(libcli11, extra_cflags: ['-DCLI11_COMPILE -DCLI11_ENABLE_EXTRA_VALIDATORS=1'])
8181

8282
install_headers(cli11_headers, subdir: 'CLI')
8383
else

0 commit comments

Comments
 (0)