naqvis / webview

Crystal bindings to Webview library
MIT License
94 stars 8 forks source link

Error in shard.yml #2

Closed paulocoghi closed 2 years ago

paulocoghi commented 2 years ago

On a new project, after creating shard.ymlwith:

dependencies:
  webview:
    github: naqvis/webview

and running shards install, this error is returned:

Error in shard.yml: missing required attribute: name at line 4, column 1

  2.   webview:
  3.     github: naqvis/webview
     ^

Resolving dependencies

Details: Crystal 1.2.2 [6529d725a] (2021-11-10) Ubuntu 20.04 64bit libwebkit2gtk-4.0-37 (which provides webkit2gtk 2.34.1) installed

naqvis commented 2 years ago

YAML is space and/or indentation sensitive and you need to ensure that your shard.yml is valid yaml file. Above error indicates your shard.yml is not in valid yaml format.

There are numerous online tools via which you can validate your yaml file. Try http://www.yamllint.com/ with your shard.yml file contents to test its validity.

paulocoghi commented 2 years ago

Sorry. It was missing required fields, in particular name and version