Commit 65e2140 1 parent a78c36e commit 65e2140 Copy full SHA for 65e2140
File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 72
72
if $specVersTest && !$patchMsgCount {$patchID }++;
73
73
}
74
74
75
+ sub patchAttrNaming ($$) {
76
+ my ($ARGV , $__) = @_ ;
77
+ $_ = $__;
78
+ my $semconv_attr_naming = ' (/docs/specs/semconv/general)/naming/' ;
79
+ if ($ARGV =~ / ^tmp\/ otel\/ specification/ && / $semconv_attr_naming / ) {
80
+ s | $semconv_attr_naming| $1 /attribute-naming/| g ;
81
+ printPatchInfoIf(" 2025-01-22-attribute-naming" , $semconvVers ne " 1.29.0" );
82
+ }
83
+ return $_ ;
84
+ }
85
+
75
86
# main
76
87
77
88
while (<>) {
84
95
if (/ ^<!---? Hugo/ ) {
85
96
while (<>) {
86
97
last if / ^-?-->/ ;
98
+ $_ = patchAttrNaming($ARGV , $_ ); # TEMPORARY patch
87
99
$frontMatterFromFile .= $_ ;
88
100
}
89
101
next ;
@@ -137,11 +149,7 @@ ($$)
137
149
printPatchInfoIf(" 2025-01-22-attribute-naming.md" , $semconvVers ne " 1.29.0" );
138
150
}
139
151
140
- my $semconv_attr_naming = ' (/docs/specs/semconv/general)/naming/' ;
141
- if ($ARGV =~ / ^tmp\/ otel\/ specification/ && / $semconv_attr_naming / ) {
142
- s | $semconv_attr_naming| $1 /attribute-naming/| g ;
143
- printPatchInfoIf(" 2025-01-22-attribute-naming" , $semconvVers ne " 1.29.0" );
144
- }
152
+ $_ = patchAttrNaming($ARGV , $_ ); # TEMPORARY patch
145
153
146
154
s |\( https://github.com/open-telemetry/opentelemetry-specification\) | ($specBasePath /otel/)| ;
147
155
s | (\]\( )/specification/| $1 $specBasePath /otel/)| ;
You can’t perform that action at this time.
0 commit comments