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

Push existing package - package id not correctly derived when OverwriteExisting with DeltaCompression and double extension. #561

Open
octocrock opened this issue Dec 22, 2020 · 3 comments
Labels

Comments

@octocrock
Copy link

When pushing a package, double extensions will always fall back to push the entire package if the package has a double extension - .tar.gz, tar.bz.

It looks like it's this line; Path.GetFileNameWithoutExtension(fileName) does not work on double file extensions.


Tested using Octopus CLI.

  • First command - push package for first time
  • Second command - push the same package

Test 1

Package is identified as existing, --overwrite-mode using default of FailIfExists:

NOTOverwriteExisting

Test 2

--overwrite-mode using OverwriteExisting. Default of --use-delta-compression is true, here it cannot identify the package id, so falls back to the full upload:

OverwriteExisting

@mcasperson
Copy link
Contributor

We have flagged this as an issue with product, but at this point we do not have capacity to assign an engineer to resolve the issue. We'll keep the issue open, but unfortunately we can not provide any guidance as to when it will be resolved.

@yj7o5
Copy link

yj7o5 commented Jan 11, 2021

@mcasperson I can send a PR for this if you like!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants