kotborealis commented on issue #2171: URL: https://github.com/apache/buildstream/issues/2171#issuecomment-5266382015
[_context.py](https://github.com/apache/buildstream/blob/2da1391a414b9e184daf40c740b106240cf84d8d/src/buildstream/_context.py#L332-L338) ```py # Relative paths don't make sense in user configuration. The exception is # workspacedir where `.` is useful as it will be combined with the name # specified on the command line. if not os.path.isabs(path) and not (directory == "workspacedir" and path == "."): raise LoadError("{} must be an absolute path".format(directory), LoadErrorReason.INVALID_DATA) ``` So, in contrast with docs, parser allows `workspacedir` to be either absolute path or `.`. The easiest fix is to update [docs](https://github.com/apache/buildstream/blob/2da1391a414b9e184daf40c740b106240cf84d8d/doc/source/using_config.rst#L106), but I think it would be useful to fully allow relative paths for it, to easily open workspaces in some directory inside current project, and not to spam them directly into the repo root. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
