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

on OSX, eyaml isn't expanding ~ into /Users/$USER #170

Closed
dkowis opened this issue Jul 31, 2015 · 6 comments
Closed

on OSX, eyaml isn't expanding ~ into /Users/$USER #170

dkowis opened this issue Jul 31, 2015 · 6 comments
Labels

Comments

@dkowis
Copy link

dkowis commented Jul 31, 2015

... for any of the configured paths. It's using the current working directory and making a "~" directory in there.

This makes it super risky to delete because rm -r ~ does properly expand. Super nervous.

This is version 2.0.8, btw.

@dkowis dkowis changed the title on OSX, eyaml isn't expanding ~ into /home/$USER on OSX, eyaml isn't expanding ~ into /Users/$USER Jul 31, 2015
@sfable
Copy link

sfable commented Sep 13, 2015

I've got a similar issue on fedora 21 with config file entries:
pkcs7_public_key: '~/eyaml/keys/public_key.pkcs7.pem'
returns:
[hiera-eyaml-core] No such file or directory @ rb_sysopen - ~/eyaml/keys/public_key.pkcs7.pem
version: 2.0.8
Ruby version: 2.1.6p336

@TomPoulton TomPoulton added the bug label Sep 15, 2015
@TomPoulton
Copy link
Collaborator

This is a known issue that I came across when I was testing on my Mac. I'll keep the issue open and try to get a fix pushed out at some point

@SirDice
Copy link

SirDice commented Jul 13, 2017

Bug's been open for almost 2 years. Issue isn't restricted to OS-X (or any other OS).

[hiera-eyaml-core] Loaded config from /root/.eyaml/config.yaml
[hiera-eyaml-core] test.eyaml doesn't exist, editing new file
[hiera-eyaml-core] No such file or directory - ~/keys/public_key.pkcs7.pem

This is on a recent RHEL7. Issue remains.

Either fix the documention (because that tells you to use ~) or actually fix the issue.

@rnelson0
Copy link
Sponsor Member

rnelson0 commented Jul 14, 2017

Oh, dear. Tilde is a shell expansion, that really shouldn't be suggested in the docs. Thank you for bumping this, I'll look at updating docs!

@gepandz
Copy link

gepandz commented Jul 31, 2017

Is there a way to request that feature? I'd love to be able to pass around a generalized config file that uses ~/keys/ instead of having to tell my team to "Make sure you update your ~/.eyaml/config.yaml file to point to your own, personal, home directory before you actually try to use this," or have to explain that "You need to be sure you're in the right relative directory, lest nothing work"...

Thanks!

@rnelson0
Copy link
Sponsor Member

rnelson0 commented Aug 1, 2017

@gepandz Possibly, but I think it needs a new issue as it's not an OSX thing, and will require more than doc updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants