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

ENH: add: Copy local files instead of transforming them to a URL #55

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

kyleam
Copy link
Contributor

@kyleam kyleam commented Oct 26, 2018

As of git-annex 6.20180626, using a local file as the argument to
--url will fail with the default configuration for
annex.security.allowed-url-schemes. Adding a local image is primarily
done for testing purposes, and pointing to a local URL doesn't provide
much of a benefit, so just copy it instead. If a user wants to treat
a local path as a URL, they can still specify it with 'file://'.

Closes #47.

As of git-annex 6.20180626, using a local file as the argument to
--url will fail with the default configuration for
annex.security.allowed-url-schemes.  Adding a local image is primarily
done for testing purposes, and pointing to a local URL doesn't provide
much of a benefit, so just copy it instead.  If a user wants to treat
a local path as a URL, they can still specify it with 'file://'.

Closes datalad#47.
@codecov
Copy link

codecov bot commented Oct 26, 2018

Codecov Report

Merging #55 into master will increase coverage by 1.22%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage   78.24%   79.46%   +1.22%     
==========================================
  Files          12       12              
  Lines         432      448      +16     
==========================================
+ Hits          338      356      +18     
+ Misses         94       92       -2
Impacted Files Coverage Δ
datalad_container/containers_add.py 90.62% <100%> (+2.58%) ⬆️
datalad_container/tests/test_containers.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1983d6f...210cc1a. Read the comment docs.

@yarikoptic yarikoptic merged commit 3325c6b into datalad:master Oct 26, 2018
@kyleam kyleam deleted the enh-copy-local-url branch October 26, 2018 19:01
jsheunis pushed a commit that referenced this pull request Nov 6, 2023
adswa pushed a commit to adswa/datalad-container that referenced this pull request Nov 8, 2023
For uber-reproducibility - make zoneinfo always be UTC inside the container
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