-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
How to move configuration? #6854
Comments
To fix I had to update the symbolic link under the new directory
and under ❯ ls -la ~/.local/bin
lrwxr-xr-x 1 jimbrannlund staff 64 Oct 21 02:00 poetry -> /Users/jimbrannlund/Library/Preferences/pypoetry/venv/bin/poetry Be nice to have a function perform these steps for you. 😊 |
Only the TOML files need to move -- Poetry broke because you moved the installation out from under it. We could introduce an automatic rename, but at the time the relocation was introduced there was an outcry against automatically moving a user's files. We might want to revisit that discussion. |
Oh, I see, so only TOML needs to live under |
Correct! |
lots of words, but if I understand it correctly all that needs to be done is:
|
@dariobig I think there's a typo 🙂, it should be: mv /Users/$USER/Library/Application\ Support/pypoetry/config.toml /Users/$USER/Library/Preferences/pypoetry/config.toml |
Shouldn't this be the exact opposite? For me Poetry 1.3.1 says:
So the mkdir -p /Users/$USER/Library/Application\ Support/pypoetry
mv /Users/$USER/Library/Preferences/pypoetry/config.toml /Users/$USER/Library/Application\ Support/pypoetry/config.toml That said, this really should be automated, or at least semi-automated, e.g. by printing the commands the user should run manually. |
@slhck with poetry 1.5, I also get that warning, and upon moving, changing a setting like
I get the warning again. I had to delete the whole directory in |
flip-flopping is inherited from the Hopefully they've settled on the right answer now and you should just be able to do whatever it is that poetry 1.5 says. |
I see, thanks. I ended up removing the config and reinstalling poetry completely. |
I just moved config.toml from ~/Users/Preferences/pypoetry to ~/Users/Library/Application Support/pypoetry and it worked. |
@slhck Thank you! This worked perfectly with Poetry mkdir -p /Users/$USER/Library/Application\ Support/pypoetry
mv /Users/$USER/Library/Preferences/pypoetry/config.toml /Users/$USER/Library/Application\ Support/pypoetry/config.toml |
I had to do
I think that it would be nice to either prompt every once in a while or provide some command that would do the move for people. Then just say run "poetry self move-config" or something like that so that people do not have to search through github to figure out what they are supposed to do. |
To save anyone else having to read through this llooonnnggg thread, note that I tried @camerondavison 's approach, and that worked for me. |
PS I agree with @camerondavison 's ideas of "I think that it would be nice to either prompt every once in a while or provide some command that would do the move for people. Then just say run "poetry self move-config" or something like that so that people do not have to search through github to figure out what they are supposed to do.". I've created an issue for this at #8818 |
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. |
❯ cp -R /Users/jimbrannlund/Library/Application\ Support/pypoetry/ /Users/jimbrannlund/Library/Preferences/pypoetry
❯ poetry zsh: command not found: poetry
❯ uname -a Darwin F8-4D-89-71-75-73 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000 arm64
Originally installed via the official installer and updated via
poetry self update
.The text was updated successfully, but these errors were encountered: