Skip to content

fix: empty path error when resolving appsLink#26

Merged
zyrouge merged 2 commits intozyrouge:mainfrom
Eggrror404:main
Oct 12, 2024
Merged

fix: empty path error when resolving appsLink#26
zyrouge merged 2 commits intozyrouge:mainfrom
Eggrror404:main

Conversation

@Eggrror404
Copy link
Copy Markdown
Contributor

Currently pho init fails when symlinking is disabled,
because utils.ResolvePath always gets called even when the appsLinkDir string is empty.

This fixes it by moving the check into the if block, where appsLinkDir would actually be set.


I also made another change but I'm not sure if the feature should be added. I'll send a separate PR later, it's pretty late at night for me 😅

@zyrouge
Copy link
Copy Markdown
Owner

zyrouge commented Sep 14, 2024

That does not resolve path if the value is set through CLI flag. We need to wrap it in another if block.

@Eggrror404
Copy link
Copy Markdown
Contributor Author

That does not resolve path if the value is set through CLI flag. We need to wrap it in another if block.

I moved it into a separate if block. Should be good now :)

@zyrouge zyrouge merged commit 9090a77 into zyrouge:main Oct 12, 2024
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