-
-
Notifications
You must be signed in to change notification settings - Fork 428
Description
So, it is unclear if this is a bug. However, I discussed with Sylvan and he thinks it is a bug.
The documentation for the --path option to ponyc on the command line says it updates the paths for packages and libraries. Whether that is working or not is open to investigation, I have tested that it correctly works for package paths. The documentation string dates back to at least 2013 so I think it is reasonable to assume it captures intent.
use "path" by all indications is meant to be a mirror that works from within pony source code. It however, only updates library not package paths and should be updated to match the end results of --path in relation to changing the package search path.
It is possible that --path is broken in that it doesn't work for libraries. I haven't verified that it works for both packages and libraries as it is supposed to. However, I do know that use "path" should be updating package paths assuming:
- Sylvan is correct in thinking that it should
- My assumption that it should mirror
--pathin functionality is correct