Skip to content

Fix reading versions from cache directory.#1076

Merged
wibblymat merged 1 commit intobower:masterfrom
gregberge:fix-cache-directory-reading
Feb 3, 2014
Merged

Fix reading versions from cache directory.#1076
wibblymat merged 1 commit intobower:masterfrom
gregberge:fix-cache-directory-reading

Conversation

@gregberge
Copy link
Copy Markdown
Contributor

When we write into directory we use encodeURIComponent, but when we read, we did nothing. Now we use decodeURIComponent to read the correct version and match the correct cache directory.

Actually, all tag containing a "+" (example "v1.2.11-build.2185+sha.4f735b0") are not correctly read from cache.

Fix #1075

When we write into directory we use encodeURIComponent, but when we read, we did nothing. Now we use decodeURIComponent to read the correct version and match the correct cache directory.
@vvo
Copy link
Copy Markdown

vvo commented Jan 28, 2014

Does it means there are a lot of downloads done for nothing?

@gregberge
Copy link
Copy Markdown
Contributor Author

@vvo yes, I think GitHub will ❤️ me.

@cesarandreu
Copy link
Copy Markdown

👍 on this patch. CI breaking sucks :(.

@satazor
Copy link
Copy Markdown
Member

satazor commented Feb 3, 2014

Looks good, @wibblymat ?

@wibblymat
Copy link
Copy Markdown
Member

I'm happy with the change!

wibblymat added a commit that referenced this pull request Feb 3, 2014
Fix reading versions from cache directory.
@wibblymat wibblymat merged commit a33fb05 into bower:master Feb 3, 2014
@wibblymat
Copy link
Copy Markdown
Member

Fixes #933?

@gregberge
Copy link
Copy Markdown
Contributor Author

No, it just decreases chances of bug, but only #1077 completely fixes them.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Bug with versions in cache

5 participants