Skip to content

Commit fefd720

Browse files
authored
Stop using curl's --time-cond / -z flag (#610)
We started using the -z flag with curl to avoid downloading an ecosystem index if there were no updates to actually fetch. This usually works fine, but some people have had issues where an index was not getting updated even when explicitly using zef update. I consider using --remote-time, but there are other time checks that zef does on that file that expect the times of the file to represent when zef created them (not what the server modification time is). For now we will solve this be not using the -z flag anymore. Resolves #602
1 parent 5a0dbfa commit fefd720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Zef/Service/Shell/curl.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Zef::Service::Shell::curl does Fetcher does Probeable {
106106
my $cwd := $save-as.parent;
107107
my $ENV := %*ENV;
108108
my $cmd := self!command();
109-
my $proc = Zef::zrun-async($cmd, '--silent', '-L', '-z', $save-as.absolute, '-o', $save-as.absolute, $uri);
109+
my $proc = Zef::zrun-async($cmd, '--silent', '-L', '-o', $save-as.absolute, $uri);
110110
$stdout.emit("Command: {$proc.command}");
111111
whenever $proc.stdout(:bin) { }
112112
whenever $proc.stderr(:bin) { }

0 commit comments

Comments
 (0)