Skip to content

Commit 41d945c

Browse files
committed
merged from upstream
2 parents 05ad3e7 + f073614 commit 41d945c

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
run: |
3838
sudo -E ./ci/setup_ci_environment.sh
3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
40+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
4141
with:
4242
languages: cpp
4343
- name: Autobuild
44-
uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
44+
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
4545
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
46+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ jobs:
4747
# Upload the results to GitHub's code scanning dashboard (optional).
4848
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4949
- name: "Upload to code-scanning"
50-
uses: github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
50+
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
5151
with:
5252
sarif_file: results.sarif

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Increment the:
3333
* [CONFIGURATION] File configuration - spec stability
3434
[#3862](https://github.com/open-telemetry/opentelemetry-cpp/pull/3862)
3535

36+
* [BUILD] Upgrade to rapidyaml 0.10.0
37+
[#3906](https://github.com/open-telemetry/opentelemetry-cpp/pull/3906)
38+
3639
Important changes:
3740

3841
* [BUILD] Revisit EventLogger deprecation

install/cmake/third_party_latest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ nlohmann-json=v3.12.0
1616
opentelemetry-proto=v1.8.0
1717
opentracing-cpp=v1.6.0
1818
prometheus-cpp=v1.3.0
19-
ryml=v0.9.0
19+
ryml=v0.10.0

install/cmake/third_party_stable

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ nlohmann-json=v3.11.3
1616
opentelemetry-proto=v1.6.0
1717
opentracing-cpp=v1.6.0
1818
prometheus-cpp=v1.3.0
19-
ryml=v0.9.0
19+
ryml=v0.10.0

sdk/src/configuration/ryml_document.cc

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include <stddef.h>
5+
#include <c4/yml/version.hpp>
56
#include <exception>
67
#include <memory>
78
#include <ostream>
@@ -98,11 +99,17 @@ std::unique_ptr<DocumentNode> RymlDocument::GetRootNode()
9899
DocumentNodeLocation RymlDocument::Location(ryml::ConstNodeRef node) const
99100
{
100101
DocumentNodeLocation loc;
102+
#if RYML_VERSION_MINOR >= 10
103+
// Starting with rapidyaml 0.10.0
101104
auto ryml_loc = node.location(*parser_);
102-
loc.offset = ryml_loc.offset;
103-
loc.line = ryml_loc.line;
104-
loc.col = ryml_loc.col;
105-
loc.filename = std::string(ryml_loc.name.str, ryml_loc.name.len);
105+
#else
106+
// Up to rapidyaml 0.9.0
107+
auto ryml_loc = parser_->location(node);
108+
#endif
109+
loc.offset = ryml_loc.offset;
110+
loc.line = ryml_loc.line;
111+
loc.col = ryml_loc.col;
112+
loc.filename = std::string(ryml_loc.name.str, ryml_loc.name.len);
106113

107114
return loc;
108115
}

0 commit comments

Comments
 (0)