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

V1.0 doesn't create config files #840

Closed
jgirardet opened this issue Jan 26, 2019 · 2 comments
Closed

V1.0 doesn't create config files #840

jgirardet opened this issue Jan 26, 2019 · 2 comments

Comments

@jgirardet
Copy link
Contributor

poetry 1.0.02

poetry fresh install python get-poetry.py --preview

$ poetry config repositories.foo https://bar.com/simple/ -vvv

[FileNotFoundError]
[Errno 2] No such file or directory: '/home/jimmy/.config/pypoetry/config.toml'

Traceback (most recent call last):
  File "/home/jimmy/.poetry/lib/poetry/_vendor/py3.7/clikit/console_application.py", line 131, in run
    status_code = command.handle(parsed_args, io)
  File "/home/jimmy/.poetry/lib/poetry/_vendor/py3.7/clikit/api/command/command.py", line 112, in handle
    status_code = self._do_handle(args, io)
  File "/home/jimmy/.poetry/lib/poetry/_vendor/py3.7/clikit/api/command/command.py", line 160, in _do_handle
    return getattr(handler, handler_method)(args, io, self)
  File "/home/jimmy/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/command.py", line 92, in wrap_handle
    return self.handle()
  File "/home/jimmy/.poetry/lib/poetry/console/commands/config.py", line 173, in handle
    'repositories.{}.url'.format(m.group(1)), url
  File "/home/jimmy/.poetry/lib/poetry/config.py", line 65, in add_property
    self.dump()
  File "/home/jimmy/.poetry/lib/poetry/config.py", line 101, in dump
    fd = os.open(str(self._file), os.O_WRONLY | os.O_CREAT, mode)
jgirardet added a commit to jgirardet/poetry that referenced this issue Jan 26, 2019
@sdispater
Copy link
Member

It has been fixed in #1272

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants