Commit 66796fa
committed
fix(pkl): bind ArtifactConfig.Repositories as []*Repository
PKL's Listing<ClassType> decodes into Go via reflection as a slice of
pointers, not values. Declaring the field as []Repository panicked with
"reflect.Set: value of type *model.Repository is not assignable to type
model.Repository" the first time PKL produced a non-empty repositories
listing. Match the pattern used elsewhere (e.g., FilterCondition
conditions) and use a pointer slice. The translation layer at
pkl.go:720 reads through the pointer transparently.1 parent b55f59e commit 66796fa
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments