diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-06-18 18:35:11 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-06-18 19:38:34 +0200 |
commit | 12dc9a6e4acd5280a3e8b1658cbb96669fa97057 (patch) | |
tree | 655225ab0edd8347164e9548a4b8c69a46458c6b /testscripts | |
parent | 1b85303ac20dc0fb30323ec971b996783c6e32f2 (diff) | |
download | hugo-12dc9a6e4acd5280a3e8b1658cbb96669fa97057.tar.gz hugo-12dc9a6e4acd5280a3e8b1658cbb96669fa97057.zip |
deploy: Fix deploy defaults for non-zero flag values (e.g. maxDeletes, invalidateCDN)
This was broken in the config rewrite in Hugo 0.112.0.
The workaround is to be explicit about setting these flag values (even if just using the defaults), e.g.:
```
hugo deploy --invalidateCDN --maxDeletes 256
```
Fixes #11127
Diffstat (limited to 'testscripts')
-rw-r--r-- | testscripts/commands/deploy.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testscripts/commands/deploy.txt b/testscripts/commands/deploy.txt index b21bf0b38..0afe1fc44 100644 --- a/testscripts/commands/deploy.txt +++ b/testscripts/commands/deploy.txt @@ -3,10 +3,10 @@ hugo deploy -h stdout 'Deploy your site to a Cloud provider\.' mkdir mybucket -hugo deploy --target mydeployment +hugo deploy --target mydeployment --invalidateCDN=false grep 'hello' mybucket/index.html replace public/index.html 'hello' 'changed' -hugo deploy --target mydeployment --invalidateCDN --dryRun +hugo deploy --target mydeployment --dryRun stdout 'Would upload: index.html' stdout 'Would invalidate CloudFront CDN with ID foobar' -- hugo.toml -- |