Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add support for local path dependencies #13

Open
itsfrank opened this issue Dec 6, 2024 · 1 comment
Open

Feature: add support for local path dependencies #13

itsfrank opened this issue Dec 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@itsfrank
Copy link

itsfrank commented Dec 6, 2024

pesde currently offers a great selection of ways to consume dependencies; however, the ability to consume pesde packages from the local files system is missing.

Two other package managers I use frequently: Cargo, Lazy.nvim, offer this and it's really great when you are the consumer of a package you maintain.

Examples

Cargo

[dependencies]
my_dep = { path = "~/dev/my_dep" }

Lazy.nvim

return {
    dir = "~/dev/my_dep",
    config = function() ... end
}

Use-Case

A common occurrence as a package maintainer is the following:

  • Create a package and distribute it with a package manager
  • In a different project, consume said package with the package manager
  • Discover an issue in the package through the use of it in a downstream project

In this scenario, what you want is the ability to iterate on the package in a branch of the main repo on your system, and consume the local changes with as little friction as possible on the downstream project where the issue reproduction is present.

Cargo achieves this by checking and rebuilding path dependencies on change, Lazy gets this for "free" via Lua's dynamic nature.

It would be wonderful if a similar workflow were possible with pesde.

Additional benefit

An additional benefit would be to make it easier to test the pesde configuration of a package before even making a commit. Currently, the only way to test if a package is correctly configured is to push to git and consume from the git revision; the iteration flow for this is a bit unfortunate:

  • Make a change
  • Push
  • Copy revision hash
  • Paste revision hash in test consumer's pesde.toml
  • pesde install
  • Test & repeat

With local path dependency declaration, this could be cut down to:

  • Declare dep & pesde install (one-time)
  • Make a change
  • Test & repeat
daimond113 added a commit that referenced this issue Dec 30, 2024
@daimond113
Copy link
Member

daimond113 commented Dec 30, 2024

Thanks for the issue! This will be fixed (added) in pesde 0.6.

@daimond113 daimond113 added enhancement New feature or request good first issue Good for newcomers and removed good first issue Good for newcomers labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants