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

Remove defaulting working_dir to ./. #915

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

rohinb2
Copy link
Contributor

@rohinb2 rohinb2 commented Jun 18, 2024

If you pass working_dir as ./, it'll still work and run the detection algorithm. However, omit it by default, as when the module or function is actually sent to the env, then the working_dir is automatically added based on the file where the code was.

@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from 7abc53f to a0513d9 Compare June 19, 2024 02:04
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from 79c190b to eb17c39 Compare June 19, 2024 02:04
@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from a0513d9 to bd55a56 Compare June 19, 2024 02:18
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from eb17c39 to d649fdd Compare June 19, 2024 02:18
@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from bd55a56 to 0495161 Compare June 20, 2024 21:36
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from d649fdd to a73815e Compare June 20, 2024 21:37
@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from 0495161 to 7c7befc Compare June 21, 2024 19:36
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch 3 times, most recently from 43b3c6c to 52f4309 Compare June 21, 2024 20:31
@rohinb2 rohinb2 marked this pull request as ready for review June 21, 2024 20:32
@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from 7c7befc to 3f27e5e Compare June 24, 2024 00:51
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from 52f4309 to 22f29d4 Compare June 24, 2024 00:51
@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from 3f27e5e to cf4d086 Compare June 24, 2024 02:20
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from 22f29d4 to 9fb1a43 Compare June 24, 2024 02:20
@rohinb2 rohinb2 force-pushed the 06-18-Add_module_pointers_to_env_if_they_don_t_exist branch from cf4d086 to 5609234 Compare June 25, 2024 14:18
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from 9fb1a43 to 5996f96 Compare June 25, 2024 14:18
@rohinb2 rohinb2 changed the base branch from 06-18-Add_module_pointers_to_env_if_they_don_t_exist to 06-25-Fix_bug_in__run_commands_with_ssh_where_node_is_not_set June 25, 2024 14:18
@@ -34,7 +34,7 @@ def env(
env_vars (Dict or str): Dictionary of environment variables, or relative path to .env file containing
environment variables. (Default: {})
working_dir (str or Path): Working directory of the environment, to be loaded onto the system.
(Default: "./")
(Default: None)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe mark as deprecated?

Copy link
Contributor

@dongreenberg dongreenberg left a comment

Choose a reason for hiding this comment

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

Amazing

Copy link
Contributor Author

rohinb2 commented Jun 25, 2024

Merge activity

  • Jun 25, 3:28 PM EDT: @rohinb2 started a stack merge that includes this pull request via Graphite.
  • Jun 25, 3:35 PM EDT: Graphite rebased this pull request as part of a merge.
  • Jun 25, 3:36 PM EDT: @rohinb2 merged this pull request with Graphite.

@rohinb2 rohinb2 force-pushed the 06-25-Fix_bug_in__run_commands_with_ssh_where_node_is_not_set branch from 2434d0c to a38661e Compare June 25, 2024 19:32
Base automatically changed from 06-25-Fix_bug_in__run_commands_with_ssh_where_node_is_not_set to main June 25, 2024 19:34
@rohinb2 rohinb2 force-pushed the 06-18-Remove_defaulting_working_dir_to_./_ branch from 5996f96 to 71a9162 Compare June 25, 2024 19:34
@rohinb2 rohinb2 merged commit a79562c into main Jun 25, 2024
11 of 12 checks passed
@rohinb2 rohinb2 deleted the 06-18-Remove_defaulting_working_dir_to_./_ branch June 25, 2024 19:36
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