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

Fix touch install_path to not accidentally create file #478

Merged

Conversation

straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Feb 22, 2021

Fix-up for #444. There's an unconditional touch on ./lib. But that folder might not exist when no dependencies are installed. This ends up creating a file at this path, which is obviously not ideal because later you might want to install dependencies and shards expects a directory.

This patch makes sure to always create the folder.

Ref. #477 (comment)

The newly added spec for shard.lock modification time was not broken, but added it for coverage.

@bcardiff bcardiff merged commit 410df08 into crystal-lang:master Feb 22, 2021
@bcardiff bcardiff added this to the v0.14.0 milestone Feb 22, 2021
@straight-shoota straight-shoota deleted the fix/touch-install_path branch February 22, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants