Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Cache directory is not properly created automatically on first run. #114

@ashea-code

Description

@ashea-code

In the situation of someone running a bakeware compiled binary on an extremely fresh install of some UNIX/Linux installs, when a ~/.cache/bakeware directory is not present already on the system the .cache directory will be created, but NOT the backware sub-directory. Resulting in the following message:

bakeware: Error creating directory ~/.cache/bakeware/.tmp/2mVpqM??: No such file or directory
bakeware: Unrecoverable validation error

UPDATE: After digging a bit more, I see the actual issue here. In utils.c it's expected that the env variable HOME will be an absolute path to the user's home directory when in-fact (in some cases of WSL) it might contain a non-absolute or un-resolved path (like ~). Because we don't expand ~ it tries to create that directory exactly, and it cannot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions