clean up & bugfix

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-01-07 16:54:52 -08:00
parent 3162ca0991
commit c5842f894a
14 changed files with 166 additions and 129 deletions

View File

@@ -30,7 +30,12 @@ func (c *Component) Config() *Value {
// NOTE: calling matchSpec("#Component") is not enough because
// it does not match embedded scalars.
func (c Component) Validate() error {
return c.Config().Validate("#ComponentConfig")
// FIXME: this crashes on `#dagger:compute:_`
// see TestValidateEmptyComponent
// Using a workaround for now.
// return c.Config().Validate("#ComponentConfig")
return c.Config().Validate()
}
// Return this component's compute script.