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

julia_init.c: Use JULIA_DEPOT_PATH and JULIA_LOAD_PATH from the environment #1032

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kpamnany
Copy link
Collaborator

When these environment variables are set, use them.

Closes #910.

When these environment variables are set, use them.
@kpamnany kpamnany requested a review from KristofferC February 28, 2025 18:33
@DilumAluthge DilumAluthge changed the title Use JULIA_DEPOT_PATH and JULIA_LOAD_PATH from the environment julia_init.c: Use JULIA_DEPOT_PATH and JULIA_LOAD_PATH from the environment Feb 28, 2025
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.16%. Comparing base (1c35331) to head (e10ef39).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1032      +/-   ##
==========================================
- Coverage   86.23%   86.16%   -0.07%     
==========================================
  Files           3        3              
  Lines         799      795       -4     
==========================================
- Hits          689      685       -4     
  Misses        110      110              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kpamnany
Copy link
Collaborator Author

kpamnany commented Feb 28, 2025

The CI failure on nightly seems to be due to an upstream change -- the alloc parameter to jl_get_binding_wr() was removed. I'm not sure how this should be fixed, but it is unrelated to this PR.

@kpamnany
Copy link
Collaborator Author

kpamnany commented Mar 4, 2025

Bump. Can this be reviewed please? @KristofferC? Someone else?

src/julia_init.c Outdated
char *new_depot_path = calloc(sizeof (char), new_depot_path_len);
if (curr_depot_path_len > 0) {
strcat(new_depot_path, curr_depot_path);
strcat(new_depot_path, ":");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ; on Windows I think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@KristofferC
Copy link
Member

Not to be a pain, but always nice with a test to make sure the intended use case doesn't break in the future..

@kpamnany
Copy link
Collaborator Author

kpamnany commented Mar 5, 2025

Not to be a pain, but always nice with a test to make sure the intended use case doesn't break in the future..

You're absolutely right. Will add one.

@kpamnany
Copy link
Collaborator Author

kpamnany commented Mar 5, 2025

BTW, looks like the CI workflow needs updating. All of CI has failed because:

Error: This request has been automatically failed because it uses a deprecated version of actions/cache: 0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use v3/v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

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.

Can't the JULIA_DEPOT_PATH be changed in apps?
2 participants