Skip to content

Support dependencies that reside on the local filesystem #77

@robinheghan

Description

@robinheghan

It would be nice to be able to define dependencies that lives on the local filesystem. This would make it easier to test out unpublished packages, or for defining a package containing tests.

It's kinda possible to do this today by adding a folder to source-directories, however this comes with a few drawbacks:

  • exposed-modules is not respected
  • the dependencies are not respected
  • projects of type package do not allow setting source-directories.

I therefore propose that you can add a project which resides on the local filesystem as a dependency, which for all intents and purposes work like any other dependency except it is not pulled from a remote git repo.

Such packages should have a few restrictions

  • you cannot publish a package which has a dependency on a local package
  • local packages cannot contain kernel code, even if the name of the package starts with gren/.

In addition:

  • projects with type package should gain the ability to define source-directories
  • test-dependencies can be removed. Unit tests can be defined in a package which define the main project as a local dependency.

Metadata

Metadata

Assignees

Labels

acceptedThe issue has been reviewed and accepted for implementationlanguage proposalproposal of a major feature to the language

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions