Use FormulaStruct when loading formulae from the API
#39951
Annotations
5 errors
|
Run brew tests
Process completed with exit code 1.
|
|
Run brew tests:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formulary_spec.rb#L478
Formulary::factory with the API returns a Formula that can regenerate its JSON API
Failure/Error: formula = described_class.factory(formula_name)
RuntimeError:
Error in FormulaStruct#__t_props_generated_deserialize: Tried to deserialize a required prop from a nil value. It's possible that a nil value exists in the database, so you should provide a `default: or factory:` for this prop (see go/optional for more details). If this is already the case, you probably omitted a required prop from the `fields:` option when doing a partial load.
at line 4 in:
val = hash["tap_git_head"]
@tap_git_head = if val.nil?
found -= 1 unless hash.key?("tap_git_head")
self.class.decorator.raise_nil_deserialize_error("tap_git_head")
else
val
end
|
|
Run brew tests:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formulary_spec.rb#L500
Formulary::factory with the API returns a disabled Formula when given a name
Failure/Error: formula = described_class.factory(formula_name)
RuntimeError:
Error in FormulaStruct#__t_props_generated_deserialize: Tried to deserialize a required prop from a nil value. It's possible that a nil value exists in the database, so you should provide a `default: or factory:` for this prop (see go/optional for more details). If this is already the case, you probably omitted a required prop from the `fields:` option when doing a partial load.
at line 4 in:
val = hash["tap_git_head"]
@tap_git_head = if val.nil?
found -= 1 unless hash.key?("tap_git_head")
self.class.decorator.raise_nil_deserialize_error("tap_git_head")
else
val
end
|
|
Run brew tests:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formulary_spec.rb#L489
Formulary::factory with the API returns a deprecated Formula when given a name
Failure/Error: formula = described_class.factory(formula_name)
RuntimeError:
Error in FormulaStruct#__t_props_generated_deserialize: Tried to deserialize a required prop from a nil value. It's possible that a nil value exists in the database, so you should provide a `default: or factory:` for this prop (see go/optional for more details). If this is already the case, you probably omitted a required prop from the `fields:` option when doing a partial load.
at line 4 in:
val = hash["tap_git_head"]
@tap_git_head = if val.nil?
found -= 1 unless hash.key?("tap_git_head")
self.class.decorator.raise_nil_deserialize_error("tap_git_head")
else
val
end
|
|
Run brew tests:
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/formulary_spec.rb#L438
Formulary::factory with the API returns a Formula when given a name
Failure/Error: formula = described_class.factory(formula_name)
RuntimeError:
Error in FormulaStruct#__t_props_generated_deserialize: Tried to deserialize a required prop from a nil value. It's possible that a nil value exists in the database, so you should provide a `default: or factory:` for this prop (see go/optional for more details). If this is already the case, you probably omitted a required prop from the `fields:` option when doing a partial load.
at line 4 in:
val = hash["tap_git_head"]
@tap_git_head = if val.nil?
found -= 1 unless hash.key?("tap_git_head")
self.class.decorator.raise_nil_deserialize_error("tap_git_head")
else
val
end
|
Loading