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

Can't use ~/... in collections path #281

Closed
joakin opened this issue Dec 15, 2023 · 2 comments · Fixed by #349
Closed

Can't use ~/... in collections path #281

joakin opened this issue Dec 15, 2023 · 2 comments · Fixed by #349

Comments

@joakin
Copy link

joakin commented Dec 15, 2023

Hi!

I was trying to configure my collections like this:

  "collections": [
    {
      "name": "core",
      "path": "~/dev/forks/Odin/core"
    }
  ],

But it doesn't seem to work.

If I change it to an absolute path it does work.

Would it be possible to expand paths so that ~/ would work? It would be very helpful to keep a single ols committed in the repo across machines without having to update the user name on each machine and keeping a dirty file I can't commit.

@DanielGavin
Copy link
Owner

It is already a case that should be handled.

What is the value of $HOME?

@joakin
Copy link
Author

joakin commented Dec 27, 2023

→ echo $HOME
/home/joakin

This works:

{
  "collections": [
    { "name": "core", "path": "/home/joakin/dev/forks/Odin/core" }
  ]
}

But this doesn't

{
  "collections": [{ "name": "core", "path": "~/dev/forks/Odin/core" }]
}

This is on windows under WSL:

→ uname -a
Linux DESKTOP-THEJR4U 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Let me know if there is anything else I can do to help debug

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 a pull request may close this issue.

2 participants