Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

[COOK-2297] more gracefully handle pip packages from VCS and source archives#28

Merged
jtimberman merged 1 commit into
poise:masterfrom
Frick:master
Feb 2, 2013
Merged

[COOK-2297] more gracefully handle pip packages from VCS and source archives#28
jtimberman merged 1 commit into
poise:masterfrom
Frick:master

Conversation

@Frick
Copy link
Copy Markdown
Contributor

@Frick Frick commented Jan 30, 2013

This small change prevents the (rather specific) use case of specifying a version with a package in version control from causing an error. Currently when a version is specified it will be appended to the resource name, breaking any URLs.

jtimberman pushed a commit that referenced this pull request Feb 2, 2013
[COOK-2297] more gracefully handle pip packages from VCS and source archives
@jtimberman jtimberman merged commit 6d2451d into poise:master Feb 2, 2013
Comment thread providers/pip.rb
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't take HTTPS into account.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct, I failed to take that into account. Perhaps a single regex test would be better? I'm not sure of the proper way to update this, though. Update the associated ticket and this pull request or submit a new ticket and pull request?

@coderanger
Copy link
Copy Markdown
Member

Just as a general comment, this makes idempotence much harder to manage.

@Frick
Copy link
Copy Markdown
Contributor Author

Frick commented Feb 2, 2013

While I agree that using these types of URLs makes idempotence impossible (since they can point to a specific version or 'latest'), the only other option is to not support them at all. Currently if version is specified with one of these URLs it will throw an error. This patch was just to get around that issue as we use a couple of packages in this manner. And as I stated in the ticket, if you use an :upgrade action with a URL of this type the only way to prevent it from re-installing the package on every chef-client run is by specifying a package_name and version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants