Don't try to understand my Github URL
I get this error when I run dune-release opam submit:
dune-release: [ERROR] The URL to your remote fork of opam-repository gh:Julow/opam-repository does not seem to point to a github repo.
Try editing your config with `dune-release config set remote <URL>` or providing a valid Github repo URL via the --remote-repo option.
No other URL exists due to my configuration. SSH URLs can be arbitrarily complex (even when pointing to Github) and I don't want any tool to decode mines. Git doesn't, for example.
Does the workaround mentioned work though?
The whole opam submit thing is a bit wonky since it uses a local checkout, edits it and submits. In the future I would much prefer to create a commit using the Github API. Then there is no need to deal with peoples URLs and setups.
The problematic part is not requiring a URL, which works fine as long as it doesn't have a meaning other than being a URL for git. API calls require a user name, and it's currently decoded from the URL of the fork, which makes sense in many cases but doesn't work in general.
I have not found a workaround, this requires a fix: https://github.com/tarides/dune-release/pull/480
The user name is used to identify branches when creating the PR, something like { "head": "user:branch-name" }.
This is partly fixed by https://github.com/tarides/dune-release/pull/480 but it's not documented and the tool will not ask for the information interactively (instead it'll fail for a bad reason).
The workaround added in https://github.com/tarides/dune-release/pull/480 doesn't work anymore:
[!] The user configuration field is deprecated and will be removed in 2.0.0 as it is redundant with the remote field. Setting it to the wrong value can lead to bugs. Please use the remote field only.
How can I stop dune-release from parsing a string that cannot be parsed ?
Sorry for the noise. I was using the released version by mistake. The work around continues to work:
dune-release opam submit --user my_user -r my_url -p ...