sifive / wit

Workspace Integration Tool
Apache License 2.0
23 stars 13 forks source link

Disallow relative paths in WIT_WORKSPACE_REFERENCE #258

Closed mmjconolly closed 4 years ago

mmjconolly commented 4 years ago

Resolve a relative path in $WIT_WORKSPACE_REFERENCE into an absolute path.

Also, mention that the variable exists in --help as the markdown docs are less convenient

For https://github.com/sifive/wit/issues/234

mmjconolly commented 4 years ago

How about if I change it to error-out when using relative paths? That removes any doubt

Error: Environment variable WIT_WORKSPACE_REFERENCE contains a relative path. Please use an absolute path.
richardxia commented 4 years ago

Sounds good to me!