Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

[Bug] install -force should not use cache #199

Closed
Redsandro opened this issue Nov 19, 2012 · 6 comments
Closed

[Bug] install -force should not use cache #199

Redsandro opened this issue Nov 19, 2012 · 6 comments

Comments

@Redsandro
Copy link
Contributor

I fixed a package mistake, but when retrying the fixed package using
cinst package -source %cd% -force
the old package from Chocolatey/lib/package/ is used.

The expected behavior of -force would be that Chocolatey removes the cache and uses the new package instead.

@ferventcoder
Copy link
Contributor

Agreed. That's an enhancement on the list. And that you could also -force -includedependencies to force the whole chain

@ferventcoder
Copy link
Contributor

Not sure if we had it listed or not.

@Redsandro
Copy link
Contributor Author

-includedependencies would also be a good idea. That would skip more manual
steps.

@pmcevoy
Copy link

pmcevoy commented Jan 25, 2013

+1 on the -includedependencies. Had a situation today where a dependency of a meta package failed and when I fixed that (a script error in the .ps1) and I tried to force the meta package, it just said it was all installed and did nothing.

@ferventcoder
Copy link
Contributor

thanks

@Redsandro
Copy link
Contributor Author

Or: -source should not use cache

-source '%cd%' -force should ignore c:\ProgramData\chocolatey\lib\%DataIAmClearlyTryingToIgnore%

@ferventcoder ferventcoder changed the title [Enhancement] -force should not use cache [Bug] install -force should not use cache Feb 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants