Skip to content

Nilseb nlohmann json as subtree#20

Merged
NilsEb merged 17 commits intomainfrom
nilseb_nlohmann_json_as_subtree
Jun 30, 2025
Merged

Nilseb nlohmann json as subtree#20
NilsEb merged 17 commits intomainfrom
nilseb_nlohmann_json_as_subtree

Conversation

@NilsEb
Copy link
Contributor

@NilsEb NilsEb commented Jun 27, 2025

No description provided.

NilsEb added 6 commits June 26, 2025 13:59
Remove nlohmann_dump in preparation of adding it as a git subtree
git-subtree-dir: nlohmann_json
git-subtree-split: 55f93686c01528224f448c19128836e7df245f72
Add bazel build files to make tests runnable with bazel
Unit tests can not be executed in one bazel test:
see nlohmann_json/tests/src/BUILD line 54
Change test execution command to execute all tests
@github-actions
Copy link

github-actions bot commented Jun 27, 2025

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 6f2621db-8f3e-41bd-8bee-385481582913
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'googletest', the root module requires module version googletest@1.14.0, but got googletest@1.14.0.bcr.1 in the resolved dependency graph.
WARNING: For repository 'score_python_basics', the root module requires module version score_python_basics@0.3.0, but got score_python_basics@0.3.2 in the resolved dependency graph.
WARNING: For repository 'aspect_rules_lint', the root module requires module version aspect_rules_lint@1.0.3, but got aspect_rules_lint@1.4.2 in the resolved dependency graph.
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: 
Loading: 0 packages loaded
    currently loading: 
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //:license-check (98 packages loaded, 10 targets configured)

Analyzing: target //:license-check (134 packages loaded, 202 targets configured)

ERROR: no such package 'examples': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/runner/work/inc_json/inc_json/examples
ERROR: /home/runner/work/inc_json/inc_json/BUILD:44:21: no such package 'examples': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /home/runner/work/inc_json/inc_json/examples and referenced by '//:license_check2dash'
ERROR: Analysis of target '//:license-check' failed; build aborted: Analysis failed
INFO: Elapsed time: 10.590s, Critical Path: 0.03s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED: 
ERROR: Build failed. Not running target

@github-actions
Copy link

The created documentation from the pull request is available at: docu-html

NilsEb added 4 commits June 27, 2025 09:54
Setting -LE git_required flag to avoid new cloning of nlohmann_json
Fixed clang tidy issues in macro_unscope.hpp and in std_fs.hpp
Fix format issues in bazel script and exclude format check of nlohmann pipeline
- Copy .clang-tidy from nlohmann to top level
such that it is used by the corresponding github action
@NilsEb NilsEb force-pushed the nilseb_nlohmann_json_as_subtree branch from fc57068 to e79b2dc Compare June 30, 2025 07:52
NilsEb added 5 commits June 30, 2025 09:01
- Describe nlohmann_json intergration
using the subtree method and how to
pull changes from nlohmann_json
- Use google style and  the .clang-tidy
config in the linting action
- Fix typo in line 64 in linting.yml
- Fix typo in line 79 in linting.yml
- Exclude .clang_tidy in yamlfmt as the formatter suggests
putting all options into a single line, which would  reduce readability
@NilsEb NilsEb force-pushed the nilseb_nlohmann_json_as_subtree branch from 93911cc to 827878b Compare June 30, 2025 09:55
NilsEb added 2 commits June 30, 2025 11:28
Deactivated style checking in linting.yml
since nlohmann_json does not follow a
common style guide
- Removed unnecessary linting annotations
Copy link
Member

@lennartbecker-d lennartbecker-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the subtree and improving the pipeline @NilsEb!

@NilsEb NilsEb merged commit ffba938 into main Jun 30, 2025
11 checks passed
@NilsEb NilsEb deleted the nilseb_nlohmann_json_as_subtree branch June 30, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants