Skip to content

Commit e9028b9

Browse files
Make yaml output consistent with the json one (#2417)
1 parent 862a4cb commit e9028b9

File tree

6 files changed

+894
-1
lines changed

6 files changed

+894
-1
lines changed

Diff for: .licensed.yml

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ reviewed:
6363
- golang.org/x/text/encoding/unicode
6464
- golang.org/x/text/internal/utf8internal
6565
- github.com/sagikazarmark/slog-shim
66+
- sigs.k8s.io/yaml
67+
- sigs.k8s.io/yaml/goyaml.v2
6668

6769
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies/GPL-3.0/.licensed.yml
6870
allowed:

Diff for: .licenses/go/sigs.k8s.io/yaml.dep.yml

+317
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,317 @@
1+
---
2+
name: sigs.k8s.io/yaml
3+
version: v1.4.0
4+
type: go
5+
summary:
6+
homepage: https://pkg.go.dev/sigs.k8s.io/yaml
7+
license: other
8+
licenses:
9+
- sources: LICENSE
10+
text: |
11+
The MIT License (MIT)
12+
13+
Copyright (c) 2014 Sam Ghods
14+
15+
Permission is hereby granted, free of charge, to any person obtaining a copy
16+
of this software and associated documentation files (the "Software"), to deal
17+
in the Software without restriction, including without limitation the rights
18+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19+
copies of the Software, and to permit persons to whom the Software is
20+
furnished to do so, subject to the following conditions:
21+
22+
The above copyright notice and this permission notice shall be included in all
23+
copies or substantial portions of the Software.
24+
25+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31+
SOFTWARE.
32+
33+
34+
Copyright (c) 2012 The Go Authors. All rights reserved.
35+
36+
Redistribution and use in source and binary forms, with or without
37+
modification, are permitted provided that the following conditions are
38+
met:
39+
40+
* Redistributions of source code must retain the above copyright
41+
notice, this list of conditions and the following disclaimer.
42+
* Redistributions in binary form must reproduce the above
43+
copyright notice, this list of conditions and the following disclaimer
44+
in the documentation and/or other materials provided with the
45+
distribution.
46+
* Neither the name of Google Inc. nor the names of its
47+
contributors may be used to endorse or promote products derived from
48+
this software without specific prior written permission.
49+
50+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
51+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
52+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
53+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
54+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
55+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
56+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
57+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
58+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
59+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
60+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61+
62+
# The forked go-yaml.v3 library under this project is covered by two
63+
different licenses (MIT and Apache):
64+
65+
#### MIT License ####
66+
67+
The following files were ported to Go from C files of libyaml, and thus
68+
are still covered by their original MIT license, with the additional
69+
copyright staring in 2011 when the project was ported over:
70+
71+
apic.go emitterc.go parserc.go readerc.go scannerc.go
72+
writerc.go yamlh.go yamlprivateh.go
73+
74+
Copyright (c) 2006-2010 Kirill Simonov
75+
Copyright (c) 2006-2011 Kirill Simonov
76+
77+
Permission is hereby granted, free of charge, to any person obtaining a copy of
78+
this software and associated documentation files (the "Software"), to deal in
79+
the Software without restriction, including without limitation the rights to
80+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
81+
of the Software, and to permit persons to whom the Software is furnished to do
82+
so, subject to the following conditions:
83+
84+
The above copyright notice and this permission notice shall be included in all
85+
copies or substantial portions of the Software.
86+
87+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
88+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
89+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
91+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
93+
SOFTWARE.
94+
95+
### Apache License ###
96+
97+
All the remaining project files are covered by the Apache license:
98+
99+
Copyright (c) 2011-2019 Canonical Ltd
100+
101+
Licensed under the Apache License, Version 2.0 (the "License");
102+
you may not use this file except in compliance with the License.
103+
You may obtain a copy of the License at
104+
105+
http://www.apache.org/licenses/LICENSE-2.0
106+
107+
Unless required by applicable law or agreed to in writing, software
108+
distributed under the License is distributed on an "AS IS" BASIS,
109+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110+
See the License for the specific language governing permissions and
111+
limitations under the License.
112+
113+
# The forked go-yaml.v2 library under the project is covered by an
114+
Apache license:
115+
116+
Apache License
117+
Version 2.0, January 2004
118+
http://www.apache.org/licenses/
119+
120+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
121+
122+
1. Definitions.
123+
124+
"License" shall mean the terms and conditions for use, reproduction,
125+
and distribution as defined by Sections 1 through 9 of this document.
126+
127+
"Licensor" shall mean the copyright owner or entity authorized by
128+
the copyright owner that is granting the License.
129+
130+
"Legal Entity" shall mean the union of the acting entity and all
131+
other entities that control, are controlled by, or are under common
132+
control with that entity. For the purposes of this definition,
133+
"control" means (i) the power, direct or indirect, to cause the
134+
direction or management of such entity, whether by contract or
135+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
136+
outstanding shares, or (iii) beneficial ownership of such entity.
137+
138+
"You" (or "Your") shall mean an individual or Legal Entity
139+
exercising permissions granted by this License.
140+
141+
"Source" form shall mean the preferred form for making modifications,
142+
including but not limited to software source code, documentation
143+
source, and configuration files.
144+
145+
"Object" form shall mean any form resulting from mechanical
146+
transformation or translation of a Source form, including but
147+
not limited to compiled object code, generated documentation,
148+
and conversions to other media types.
149+
150+
"Work" shall mean the work of authorship, whether in Source or
151+
Object form, made available under the License, as indicated by a
152+
copyright notice that is included in or attached to the work
153+
(an example is provided in the Appendix below).
154+
155+
"Derivative Works" shall mean any work, whether in Source or Object
156+
form, that is based on (or derived from) the Work and for which the
157+
editorial revisions, annotations, elaborations, or other modifications
158+
represent, as a whole, an original work of authorship. For the purposes
159+
of this License, Derivative Works shall not include works that remain
160+
separable from, or merely link (or bind by name) to the interfaces of,
161+
the Work and Derivative Works thereof.
162+
163+
"Contribution" shall mean any work of authorship, including
164+
the original version of the Work and any modifications or additions
165+
to that Work or Derivative Works thereof, that is intentionally
166+
submitted to Licensor for inclusion in the Work by the copyright owner
167+
or by an individual or Legal Entity authorized to submit on behalf of
168+
the copyright owner. For the purposes of this definition, "submitted"
169+
means any form of electronic, verbal, or written communication sent
170+
to the Licensor or its representatives, including but not limited to
171+
communication on electronic mailing lists, source code control systems,
172+
and issue tracking systems that are managed by, or on behalf of, the
173+
Licensor for the purpose of discussing and improving the Work, but
174+
excluding communication that is conspicuously marked or otherwise
175+
designated in writing by the copyright owner as "Not a Contribution."
176+
177+
"Contributor" shall mean Licensor and any individual or Legal Entity
178+
on behalf of whom a Contribution has been received by Licensor and
179+
subsequently incorporated within the Work.
180+
181+
2. Grant of Copyright License. Subject to the terms and conditions of
182+
this License, each Contributor hereby grants to You a perpetual,
183+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
184+
copyright license to reproduce, prepare Derivative Works of,
185+
publicly display, publicly perform, sublicense, and distribute the
186+
Work and such Derivative Works in Source or Object form.
187+
188+
3. Grant of Patent License. Subject to the terms and conditions of
189+
this License, each Contributor hereby grants to You a perpetual,
190+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
191+
(except as stated in this section) patent license to make, have made,
192+
use, offer to sell, sell, import, and otherwise transfer the Work,
193+
where such license applies only to those patent claims licensable
194+
by such Contributor that are necessarily infringed by their
195+
Contribution(s) alone or by combination of their Contribution(s)
196+
with the Work to which such Contribution(s) was submitted. If You
197+
institute patent litigation against any entity (including a
198+
cross-claim or counterclaim in a lawsuit) alleging that the Work
199+
or a Contribution incorporated within the Work constitutes direct
200+
or contributory patent infringement, then any patent licenses
201+
granted to You under this License for that Work shall terminate
202+
as of the date such litigation is filed.
203+
204+
4. Redistribution. You may reproduce and distribute copies of the
205+
Work or Derivative Works thereof in any medium, with or without
206+
modifications, and in Source or Object form, provided that You
207+
meet the following conditions:
208+
209+
(a) You must give any other recipients of the Work or
210+
Derivative Works a copy of this License; and
211+
212+
(b) You must cause any modified files to carry prominent notices
213+
stating that You changed the files; and
214+
215+
(c) You must retain, in the Source form of any Derivative Works
216+
that You distribute, all copyright, patent, trademark, and
217+
attribution notices from the Source form of the Work,
218+
excluding those notices that do not pertain to any part of
219+
the Derivative Works; and
220+
221+
(d) If the Work includes a "NOTICE" text file as part of its
222+
distribution, then any Derivative Works that You distribute must
223+
include a readable copy of the attribution notices contained
224+
within such NOTICE file, excluding those notices that do not
225+
pertain to any part of the Derivative Works, in at least one
226+
of the following places: within a NOTICE text file distributed
227+
as part of the Derivative Works; within the Source form or
228+
documentation, if provided along with the Derivative Works; or,
229+
within a display generated by the Derivative Works, if and
230+
wherever such third-party notices normally appear. The contents
231+
of the NOTICE file are for informational purposes only and
232+
do not modify the License. You may add Your own attribution
233+
notices within Derivative Works that You distribute, alongside
234+
or as an addendum to the NOTICE text from the Work, provided
235+
that such additional attribution notices cannot be construed
236+
as modifying the License.
237+
238+
You may add Your own copyright statement to Your modifications and
239+
may provide additional or different license terms and conditions
240+
for use, reproduction, or distribution of Your modifications, or
241+
for any such Derivative Works as a whole, provided Your use,
242+
reproduction, and distribution of the Work otherwise complies with
243+
the conditions stated in this License.
244+
245+
5. Submission of Contributions. Unless You explicitly state otherwise,
246+
any Contribution intentionally submitted for inclusion in the Work
247+
by You to the Licensor shall be under the terms and conditions of
248+
this License, without any additional terms or conditions.
249+
Notwithstanding the above, nothing herein shall supersede or modify
250+
the terms of any separate license agreement you may have executed
251+
with Licensor regarding such Contributions.
252+
253+
6. Trademarks. This License does not grant permission to use the trade
254+
names, trademarks, service marks, or product names of the Licensor,
255+
except as required for reasonable and customary use in describing the
256+
origin of the Work and reproducing the content of the NOTICE file.
257+
258+
7. Disclaimer of Warranty. Unless required by applicable law or
259+
agreed to in writing, Licensor provides the Work (and each
260+
Contributor provides its Contributions) on an "AS IS" BASIS,
261+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
262+
implied, including, without limitation, any warranties or conditions
263+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
264+
PARTICULAR PURPOSE. You are solely responsible for determining the
265+
appropriateness of using or redistributing the Work and assume any
266+
risks associated with Your exercise of permissions under this License.
267+
268+
8. Limitation of Liability. In no event and under no legal theory,
269+
whether in tort (including negligence), contract, or otherwise,
270+
unless required by applicable law (such as deliberate and grossly
271+
negligent acts) or agreed to in writing, shall any Contributor be
272+
liable to You for damages, including any direct, indirect, special,
273+
incidental, or consequential damages of any character arising as a
274+
result of this License or out of the use or inability to use the
275+
Work (including but not limited to damages for loss of goodwill,
276+
work stoppage, computer failure or malfunction, or any and all
277+
other commercial damages or losses), even if such Contributor
278+
has been advised of the possibility of such damages.
279+
280+
9. Accepting Warranty or Additional Liability. While redistributing
281+
the Work or Derivative Works thereof, You may choose to offer,
282+
and charge a fee for, acceptance of support, warranty, indemnity,
283+
or other liability obligations and/or rights consistent with this
284+
License. However, in accepting such obligations, You may act only
285+
on Your own behalf and on Your sole responsibility, not on behalf
286+
of any other Contributor, and only if You agree to indemnify,
287+
defend, and hold each Contributor harmless for any liability
288+
incurred by, or claims asserted against, such Contributor by reason
289+
of your accepting any such warranty or additional liability.
290+
291+
END OF TERMS AND CONDITIONS
292+
293+
APPENDIX: How to apply the Apache License to your work.
294+
295+
To apply the Apache License to your work, attach the following
296+
boilerplate notice, with the fields enclosed by brackets "{}"
297+
replaced with your own identifying information. (Don't include
298+
the brackets!) The text should be enclosed in the appropriate
299+
comment syntax for the file format. We also recommend that a
300+
file or class name and description of purpose be included on the
301+
same "printed page" as the copyright notice for easier
302+
identification within third-party archives.
303+
304+
Copyright {yyyy} {name of copyright owner}
305+
306+
Licensed under the Apache License, Version 2.0 (the "License");
307+
you may not use this file except in compliance with the License.
308+
You may obtain a copy of the License at
309+
310+
http://www.apache.org/licenses/LICENSE-2.0
311+
312+
Unless required by applicable law or agreed to in writing, software
313+
distributed under the License is distributed on an "AS IS" BASIS,
314+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
315+
See the License for the specific language governing permissions and
316+
limitations under the License.
317+
notices: []

0 commit comments

Comments
 (0)