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

shorten the capsule dir #8827

Merged
merged 1 commit into from
Apr 24, 2024
Merged

shorten the capsule dir #8827

merged 1 commit into from
Apr 24, 2024

Conversation

davidfirst
Copy link
Member

The capsule base-dir is normally a sha1 of the workspace/scope dir, which is 40 chars long. Problem is that Windows is not happy with long paths.
This PR uses a shorter hash. The number 9 is pretty random, it's what we use for short-hash of snaps.
We're aware of an extremely low risk of collision. Keep in mind that in most cases you won't have more than 10 capsules in the machine, so it's fine.

@davidfirst davidfirst merged commit 542246d into master Apr 24, 2024
11 checks passed
@davidfirst davidfirst deleted the shorten-capsule-dir branch April 24, 2024 21:28
luvkapur pushed a commit that referenced this pull request May 3, 2024
The capsule base-dir is normally a `sha1` of the workspace/scope dir,
which is 40 chars long. Problem is that Windows is not happy with long
paths.
This PR uses a shorter hash. The number 9 is pretty random, it's what we
use for short-hash of snaps.
We're aware of an extremely low risk of collision. Keep in mind that in
most cases you won't have more than 10 capsules in the machine, so it's
fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants