You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nmattia yes, it does (thank you by the way!), though I think the role of attributes should be clarified, at least on the readme, what do you think? The relationship between attributes and templates is never explained explicitly...
And also what attributes are available by default, maybe?
I understand that name is not available in the template context, and must be provided additionally as --attributes name=....
Examples
For example, this does not work:
$ niv add \ autodocodec --version 0.4.1.0 \ --template "https://hackage.haskell.org/package/<name>-<version>/<name>-<version>.tar.gz"Adding package autodocodec FATAL: One or more packages failed to update: autodocodec: Update failed: Could not render template https://hackage.haskell.org/package/<name>-<version>/<name>-<version>.tar.gz with keys: url_template, version CallStack (from HasCallStack): error, called at src/Niv/Update.hs:80:25 in niv-0.2.22-IlyoaYrYPiZATCJYABWS2Z:Niv.UpdateERROR: ExitFailure 1
This does not work either:
$ niv add \ autodocodec --name autodocodec --version 0.4.1.0 \ --template "https://hackage.haskell.org/package/<name>-<version>/<name>-<version>.tar.gz"Adding package autodocodec FATAL: One or more packages failed to update: autodocodec: Update failed: Could not render template https://hackage.haskell.org/package/<name>-<version>/<name>-<version>.tar.gz with keys: url_template, version CallStack (from HasCallStack): error, called at src/Niv/Update.hs:80:25 in niv-0.2.22-IlyoaYrYPiZATCJYABWS2Z:Niv.UpdateERROR: ExitFailure 1
@nmattia yes, it does (thank you by the way!), though I think the role of attributes should be clarified, at least on the readme, what do you think? The relationship between attributes and templates is never explained explicitly...
Originally posted by @sir4ur0n in #232 (comment)
The text was updated successfully, but these errors were encountered: