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

Remove the need for valid SSH keys linked to your github when using opam-publish #154

Closed
wants to merge 2 commits into from

Conversation

kit-ty-kate
Copy link
Contributor

Fixes ocaml/opam#5620

cc @johnwhitington if you haven't added SSH keys to your profile yet, could you try if this fixes your issue?

@johnwhitington
Copy link

Thanks.

I downloaded the master of opam-publish and substituted your new publishSubmit.ml. Then I ran make. Then, make install failed, so I ran dune build @install as suggested.

It still doesn't work - same error as before.

Can you suggest a way to check that the new opam publish plugin was actually installed, as a first step?

@kit-ty-kate
Copy link
Contributor Author

Then, make install failed

what did it fail with? Does it work with the latest commit?

Can you suggest a way to check that the new opam publish plugin was actually installed, as a first step?

opam plugins are simple executables with the opam- prefix, so you can simply run ./opam-publish it should work all the same.

The way opam <plugin name> works is, when opam doesn't know a subcommand name, it looks at binaries installed in $OPAMROOT/plugins/bin (by default: ~/.opam/plugins/bin), usually those will be symlinks to binaries installed in a specific switch. These symlinks are added for any packages that have the plugin flag and have a binary prefixed with opam-

@kit-ty-kate
Copy link
Contributor Author

Does it work with the latest commit?

oops i forgot to push said commit. It's done now.

@johnwhitington
Copy link

johnwhitington commented Aug 3, 2023

Sadly, it has gone from bad to worse, though not your fault. I can't even build opam_publish now:

$ make
dune build @install
File "src/dune", line 4, characters 7-18:
4 |  (name publishMain)
           ^^^^^^^^^^^
ld: warning: directory not found for option '-L/opt/homebrew/Cellar/openssl@3/3.1.1_1/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
File "caml_startup", line 1:
Error: Error during linking (exit code 1)

I have OpenSSL 3.1.2 installed, so I have no idea where dune is picking up -L/opt/homebrew/Cellar/openssl@3/3.1.1_1/lib from. I suppose there has been a recent upgrade.

I started with a fresh checkout of opam_publish and substituted the two patched files. So it's not left over from the last attempt.

@kit-ty-kate
Copy link
Contributor Author

Does opam reinstall conf-libssl fix this issue for you?

@ocaml-opam ocaml-opam deleted a comment from johnwhitington Aug 7, 2023
@kit-ty-kate
Copy link
Contributor Author

kit-ty-kate commented Aug 7, 2023

@johnwhitington i deleted your comment due to it containing an <elided> token (you forgot one). I'd recommend you remove access to this token in case some bot got access to it while it was still up (i tried to edit it out but edition history still exists)

Anyway, this seems to show that this PR is quite dangerous and does not work. I'll close this then, sorry for the bother.

Let's continue the discussion in #155 (the original opam issue is not the right place as opam-publish is a separate plugin)

@kit-ty-kate kit-ty-kate closed this Aug 7, 2023
@kit-ty-kate kit-ty-kate deleted the no-ssh branch August 7, 2023 20:12
@johnwhitington
Copy link

johnwhitington commented Aug 7, 2023

Thanks. Github auto-revoked the key, happily!

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.

Unable to publish due to key verification failure
2 participants