Skip to content

Commit 536182a

Browse files
authored
Add feature to import types from other yardl packages (#94)
1 parent 31a6e29 commit 536182a

79 files changed

Lines changed: 4215 additions & 2340 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ jobs:
136136
steps:
137137
- uses: actions/checkout@v3
138138

139+
- uses: actions/setup-go@v3
140+
with:
141+
go-version: "1.21.3"
142+
139143
- name: Set variables
140144
run: |
141145
gobin="${RUNNER_TEMP}/bin"
@@ -146,7 +150,8 @@ jobs:
146150
run: |
147151
scripts/generate-notice.sh
148152
if [[ `git status --porcelain` ]]; then
149-
echo "NOTICE.txt needs to be regenerated using scripts/generate-notice.sh"
153+
git diff
154+
echo "ERROR: NOTICE.txt needs to be regenerated using scripts/generate-notice.sh"
150155
exit 1
151156
fi
152157

NOTICE.txt

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,72 @@ SOFTWARE.
110110

111111
================================================================================
112112

113+
github.com/mattn/go-colorable
114+
115+
The MIT License (MIT)
116+
117+
Copyright (c) 2016 Yasuhiro Matsumoto
118+
119+
Permission is hereby granted, free of charge, to any person obtaining a copy
120+
of this software and associated documentation files (the "Software"), to deal
121+
in the Software without restriction, including without limitation the rights
122+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
123+
copies of the Software, and to permit persons to whom the Software is
124+
furnished to do so, subject to the following conditions:
125+
126+
The above copyright notice and this permission notice shall be included in all
127+
copies or substantial portions of the Software.
128+
129+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
130+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
131+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
132+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
133+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
134+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
135+
SOFTWARE.
136+
137+
================================================================================
138+
139+
github.com/mattn/go-isatty
140+
141+
Copyright (c) Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
142+
143+
MIT License (Expat)
144+
145+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
146+
147+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148+
149+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
150+
151+
================================================================================
152+
153+
github.com/rs/zerolog
154+
155+
MIT License
156+
157+
Copyright (c) 2017 Olivier Poitrey
158+
159+
Permission is hereby granted, free of charge, to any person obtaining a copy
160+
of this software and associated documentation files (the "Software"), to deal
161+
in the Software without restriction, including without limitation the rights
162+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
163+
copies of the Software, and to permit persons to whom the Software is
164+
furnished to do so, subject to the following conditions:
165+
166+
The above copyright notice and this permission notice shall be included in all
167+
copies or substantial portions of the Software.
168+
169+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
170+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
171+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
172+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
173+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
174+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
175+
SOFTWARE.
176+
177+
================================================================================
178+
113179
github.com/spf13/cobra
114180

115181
Apache License

cpp/test/computed_fields_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ TEST(ComputedFieldsTest, SwitchExpression) {
147147
r.union_with_nested_generic_union = 42;
148148
ASSERT_EQ(r.NestedSwitch(), -1);
149149
ASSERT_EQ(r.UseNestedComputedField(), -1);
150-
r.union_with_nested_generic_union = GenericRecordWithComputedFields<std::string, float>{"hi"};
150+
r.union_with_nested_generic_union = basic_types::GenericRecordWithComputedFields<std::string, float>{"hi"};
151151
ASSERT_EQ(r.NestedSwitch(), 10);
152152
ASSERT_EQ(r.UseNestedComputedField(), 0);
153-
r.union_with_nested_generic_union = GenericRecordWithComputedFields<std::string, float>{42.0f};
153+
r.union_with_nested_generic_union = basic_types::GenericRecordWithComputedFields<std::string, float>{42.0f};
154154
ASSERT_EQ(r.NestedSwitch(), 20);
155155
ASSERT_EQ(r.UseNestedComputedField(), 1);
156156

157-
GenericRecordWithComputedFields<int, double> gr;
157+
basic_types::GenericRecordWithComputedFields<int, double> gr;
158158
gr.f1 = 42;
159159
ASSERT_EQ(gr.TypeIndex(), 0);
160160
gr.f1 = 42.0;

0 commit comments

Comments
 (0)