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

Bundle Project.toml with libraries #850

Merged

Conversation

sloede
Copy link
Collaborator

@sloede sloede commented Sep 20, 2023

Similar to #572, this PR bundles the Project.toml file with libraries. The motivation is that otherwise it is not possible to run dynamic code in the library that is using one of the project dependencies. For example, when includeing a file from a library function, using MyPkg will currently not work even if MyPkg is listed in the [deps] section of the project dir. With this PR, using MyPkg will be possible again.

I also added a note to the docstring explaining that installing multiple apps/libraries to the same prefix is generally not possible, since they will overwrite each other's Project.toml in <prefix>/share/julia. This was already the case before for apps, I just amended the documentation for it.

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #850 (9b87f8f) into master (092becd) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #850      +/-   ##
==========================================
+ Coverage   83.87%   83.92%   +0.04%     
==========================================
  Files           3        3              
  Lines         732      734       +2     
==========================================
+ Hits          614      616       +2     
  Misses        118      118              
Files Changed Coverage Δ
src/PackageCompiler.jl 93.07% <100.00%> (+0.02%) ⬆️

@sloede
Copy link
Collaborator Author

sloede commented Sep 20, 2023

@KristofferC @IanButterworth this is ready for review from my point of view.

@KristofferC KristofferC merged commit aae3f3e into JuliaLang:master Sep 20, 2023
28 of 35 checks passed
@sloede sloede deleted the msl/bundle-project-for-libraries branch September 20, 2023 10:24
@sloede
Copy link
Collaborator Author

sloede commented Sep 20, 2023

Thanks a lot for the fast response! It would be great if you could also tag a patch release.

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

Successfully merging this pull request may close these issues.

2 participants