Skip to content

drop migration path for the config file #497

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

Merged
merged 2 commits into from
Feb 3, 2025
Merged

Conversation

v-gb
Copy link
Contributor

@v-gb v-gb commented Jan 29, 2025

Currently, it systematically fails:

$ dune-release 
[-] Upgrading configuration files: /home/foo/.dune => /home/foo/.config/dune
dune-release: [ERROR] move /home/foo/.dune to /home/foo/.config/dune/release.yml: Destination exists

when using dune package management, due to dune getting installed to
~/.dune/bin/dune.

Considering that:

  • the migration code from 2018
  • it doesn't work at all, since aside from failing unnecessarily, it would
    also mess things up by renaming the directory ~/.dune to
    ~/.config/dune/dune/release.yml

I see no reason to salvage this code.

The second commit cleans up some Result.t that have become infallible.

v-gb added 2 commits January 29, 2025 14:46
Currently, it systematically fails:

```shell
$ dune-release 
[-] Upgrading configuration files: /home/foo/.dune => /home/foo/.config/dune
dune-release: [ERROR] move /home/foo/.dune to /home/foo/.config/dune/release.yml: Destination exists
```

when using dune package management, due to dune getting installed to
~/.dune/bin/dune.

Considering that:

- the migration code from 2018
- it doesn't work at all, since aside from failing unnecessarily, it would
  also mess things up by renaming the directory ~/.dune to
  ~/.config/dune/dune/release.yml

I see no reason to salvage this code.
@Leonidas-from-XIV
Copy link
Member

FYI: Dune package management is installing to .local these days: ocaml-dune/binary-distribution#143

@v-gb
Copy link
Contributor Author

v-gb commented Jan 29, 2025

Right, but it doesn't remove any previous installed dune, and no reason to keep nonfunctional code.

@samoht samoht merged commit 6350a3a into tarides:main Feb 3, 2025
3 checks passed
@samoht
Copy link
Contributor

samoht commented Feb 3, 2025

Thanks!

@v-gb v-gb deleted the fix-migration branch February 3, 2025 13:56
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.

3 participants