Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
05f0b9e0
Commit
05f0b9e0
authored
3 years ago
by
Simon Sapin
Browse files
Options
Downloads
Patches
Plain Diff
Overwrite local file in new-dataset even if not overwriting on the server
parent
5dcc6faa
No related branches found
No related tags found
1 merge request
!3
Add support for installing tools and caching their install
Pipeline
#34622
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/subcommands/new_dataset.rs
+6
-1
6 additions, 1 deletion
src/subcommands/new_dataset.rs
with
6 additions
and
1 deletion
src/subcommands/new_dataset.rs
+
6
−
1
View file @
05f0b9e0
...
...
@@ -103,7 +103,12 @@
}
}
let
(
cache_path
,
dataset
)
=
poulpe
.write_file_atomic
(
args
.overwrite
,
|
file
|
{
// Because the path is based on a hash of the contents,
// overwritting an existing local file is a no-op.
// This could happen if we’re uploading again a file that was removed from the server,
// or if uploading previously failed.
let
clobber
=
true
;
let
(
cache_path
,
dataset
)
=
poulpe
.write_file_atomic
(
clobber
,
|
file
|
{
let
sha
=
Sha256
::
new
();
let
tee
=
Tee
(
file
,
sha
);
let
level
=
zstd
::
DEFAULT_COMPRESSION_LEVEL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment