Skip to content

use "path" scheme only updates library search path not packages #4779

@SeanTAllen

Description

@SeanTAllen

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 --path in functionality is correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    discuss during syncShould be discussed during an upcoming syncneeds discussionNeeds to be discussed further

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions