Skip to content

Conversation

@mnowster
Copy link

Expand volume paths much earlier so that we don't give relative paths to splitdrive.

Should fix #2128

@mnowster mnowster force-pushed the 2128-relative-path-on-windows branch 4 times, most recently from ccf0cce to b622fa7 Compare October 12, 2015 16:26
It's a class of error that we need shared, as it'll be used by config.py

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
After a config file has been fully interpolated, we expand all of the
volume paths. This helps ensure that splitdrive works correctly, as it
won't be dealing with any relative paths.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
Previously it was using self.working_dir from the service that had extends
not the location of where we are extending from.

Hard to write that sentence to make sense. pre_processing expands volume
paths and should do so relative to the file they are defined in.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
Doing the path expansion much earlier on means requires that we
don't lose the intended behaviour of no path expansion if a volume
driver is specified, as per: docker@a68ee0d9

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
The expansion logic has already been done during pre_process_config
so it's not needed here anymore.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
Now that path expansion logic is happening in the pre_process_config
to ensure the logic we're testing is happening, don't short cut to
use make_service_dict and instead go through the appropriate
config.load.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
@mnowster mnowster force-pushed the 2128-relative-path-on-windows branch from b622fa7 to a339437 Compare October 13, 2015 10:10
@mnowster mnowster changed the title WIP:2128 relative path on windows 2128 relative path on windows Oct 13, 2015
Copy link

Choose a reason for hiding this comment

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

A TODO about this being legacy and us needing to consolidate to use the ConfigurationError would be good here I think

Copy link
Author

Choose a reason for hiding this comment

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

Ok, good idea.

@mnowster
Copy link
Author

Closing in favour of #2181

@mnowster mnowster closed this Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relative path, .:/data, does not work on windows

3 participants