using the latest version of toml returns errors during build #9

Open
opened 2023-12-07 15:00:53 +01:00 by rya · 3 comments
Collaborator

the current newest version (commit db53c77) replaced TOML::Type with TOML::Any, although simply replacing all instances of TOML::Type with TOML::Any in the code doesn't seem to work, or at least I am not smart enough to replace it properly... I got stuck here if it's any helpful info

In src/endpoints/accounts/getURL.cr:10:6

 10 | "#{config_get("general.hostname").as(String)}/#{config_get("general.append_path").as(String)[0..-2]}"
         ^
Error: can't cast (Hash(String, TOML::Any) | TOML::Any | Nil) to String

the laziest hotfix I can think of is make the dependency use a commit before the TOML::Any changes

the current newest version (commit [db53c77](https://github.com/crystal-community/toml.cr/commit/db53c77b6973369c8d5575d20ee91dec971a6fee)) replaced `TOML::Type` with `TOML::Any`, although simply replacing all instances of TOML::Type with TOML::Any in the code doesn't seem to work, or at least I am not smart enough to replace it properly... I got stuck here if it's any helpful info ``` In src/endpoints/accounts/getURL.cr:10:6 10 | "#{config_get("general.hostname").as(String)}/#{config_get("general.append_path").as(String)[0..-2]}" ^ Error: can't cast (Hash(String, TOML::Any) | TOML::Any | Nil) to String ``` the laziest hotfix I can think of is make the dependency use a commit before the TOML::Any changes
rya changed title from using the latest version of toml returns errors to using the latest version of toml returns errors during build 2023-12-07 18:00:26 +01:00
Owner

oops

oops
oat self-assigned this 2023-12-08 10:14:39 +01:00
Author
Collaborator

Fixed in commit a8a3798e96

Fixed in commit a8a3798e96
rya closed this issue 2024-02-03 17:27:03 +01:00
Author
Collaborator
  • not fixed in nix, oops
* not fixed in nix, oops
rya reopened this issue 2024-02-15 12:06:13 +01:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: oat/crystal-gauntlet#9
No description provided.