Skip to content

[Feature Request] Allow local/private dependencies for modulesΒ #526

@codeworm96

Description

@codeworm96

Feature Request

Summary

Currently, the moon add only accepts <author>/<package_name>[@<version>]: https://github.com/moonbitlang/moon/blob/main/crates/moon/src/cli/deps.rs#L78

But internally, the dependencies can be local or from git repo.
https://github.com/moonbitlang/moon/blob/main/crates/moonutil/src/dependency.rs#L28-L41

// Other optional fields...
/// Local path to the dependency. Overrides the version requirement.
pub path: Option<String>,
/// Git repository URL. Overrides the version requirement.
pub git: Option<String>,
/// Git branch to use.
pub git_branch: Option<String>,

Is there any plan to expose these two options to end user, to allow local/private dependencies?

Motivation

Common use cases for local dependencies are:

  • prototyping a new module before publishing to mooncakes
  • private modules that are not for opensource

Checklist

  • I have added all necessary details to make it easy for the maintainers to understand my request.

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