Skip to content

There is no clear document for how require "foo/bar/baz" work. #677

Open
@zw963

Description

@zw963
require "foo/bar/baz"

After i test it, it seem like the lookup path is: (assume CRYSTAL_PATH is lib)

      lib/foo/bar/baz.cr
      lib/foo/bar/baz/baz.cr
      lib/foo/src/bar/baz.cr

But, i never saw any document mention it.

I consider this is a really important concept for the crystal user, but i understood it until now because there no document.

Before this, i have to use absolute path from the lib. e.g. require "foo/src/bar/baz"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions