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

Ensure consistent slashes in notebook paths for different OSes #500

Merged
merged 2 commits into from
Feb 10, 2021
Merged

Ensure consistent slashes in notebook paths for different OSes #500

merged 2 commits into from
Feb 10, 2021

Conversation

hfurubotten
Copy link
Contributor

Adds filepath.ToSlash on the input to mkdir to ensure that path separator stays consistent over different OSes. On Windows systems it would be translated to \ before sending the request to databricks, which isn't supported.

Fixes #496

@nfx nfx self-requested a review February 10, 2021 16:09
@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #500 (b906cd1) into master (43292fd) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #500   +/-   ##
=======================================
  Coverage   80.80%   80.80%           
=======================================
  Files          76       76           
  Lines        6382     6382           
=======================================
  Hits         5157     5157           
  Misses        847      847           
  Partials      378      378           
Impacted Files Coverage Δ
workspace/resource_notebook.go 87.38% <100.00%> (ø)

@nfx nfx merged commit b721635 into databricks:master Feb 10, 2021
@hfurubotten hfurubotten deleted the fix/notebook-paths-windows branch February 10, 2021 16:12
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.

[ISSUE] Notebook path changes to \ on apply with windows systems
2 participants