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

Allow specifying a local project as a build dependency #1409

Closed
NicklasXYZ opened this issue Dec 22, 2021 · 3 comments · Fixed by #2153
Closed

Allow specifying a local project as a build dependency #1409

NicklasXYZ opened this issue Dec 22, 2021 · 3 comments · Fixed by #2153
Labels
help wanted Contributions encouraged
Milestone

Comments

@NicklasXYZ
Copy link

NicklasXYZ commented Dec 22, 2021

Build tool feature request: Allow specifying a local project as a build dependency.

For example, I've previously used the following with rebar3 to specify a local project local_project as a dependency:

{deps, [
    {local_project, {path, "local_project"}},
]}. 

It would be cool if the new Gleam build tool supported this kind of build pattern as well.

I hope I am not creating a duplicate issue :-)

@lpil lpil added area:tooling help wanted Contributions encouraged labels Dec 24, 2021
@lpil
Copy link
Member

lpil commented Dec 24, 2021

A super useful feature, let's do this for sure.

Related to #1338 as it'll share a lot of the same code.

@lpil lpil added this to the Gleam build tool stage 2 milestone Dec 24, 2021
@lpil lpil removed this from the Gleam build tool stage 2 milestone Jan 2, 2022
@lpil
Copy link
Member

lpil commented May 11, 2022

Some things we'll need to do:

  • Work out how it fits into the build directory
  • Integrate it into dependency version resolution
  • Ban publishing of packages that have non-hex deps

@paulo-ferraz-oliveira
Copy link

@lpil, you probably know this already, but in rebar3 you can achieve the same effect by using folder _checkouts (think symbolic links) in which case rebar3 will signal the dependency as local (checkout) and will not update rebar.lock with its reference.

(was brought here from the Erlang Forums)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants