Skip to content

error: colon in url path #44

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

Closed
volker-raschek opened this issue Jun 20, 2020 · 6 comments
Closed

error: colon in url path #44

volker-raschek opened this issue Jun 20, 2020 · 6 comments

Comments

@volker-raschek
Copy link

volker-raschek commented Jun 20, 2020

Hey, I get the following error when I want to push the code on github.

time="2020-06-14T12:33:21Z" level=fatal msg="parse \"[email protected]:fh-trier/latex-templates.git\": first path segment in URL cannot contain colon"

https://drone.cryptic.systems/fh-trier/latex-templates/8/1/3

Here is my defined drone.yml section:

- name: push-latest-commit
  image: appleboy/drone-git-push
  settings:
    remote: [email protected]:fh-trier/latex-templates.git
    force: true
    key:
      from_secret: github_ssh_key
  when:
    repo:
    - fh-trier/latex-templates
    branch:
    - master
    event:
    - push

Can someone explain to me where the error is? I think I have set it up as described in the documentation or is it out of date?

Volker

@bregydoc
Copy link

I have the same issue.

@proapi
Copy link

proapi commented Jan 10, 2021

I have the same issue, did you find a solution?

@volker-raschek
Copy link
Author

@proapi, no I did not find any solution at the moment.

@yvvas
Copy link

yvvas commented Jan 26, 2021

This is actually a bug with some go pkg so use this image instead: image: appleboy/drone-git-push:0.2.0-linux-amd64

More information here: #40

Hope that helps!

@appleboy
Copy link
Owner

appleboy commented Aug 2, 2022

replace

[email protected]:fh-trier/latex-templates.git

with

ssh://[email protected]/fh-trier/latex-templates.git

@appleboy appleboy closed this as completed Aug 2, 2022
@laur89
Copy link

laur89 commented Oct 28, 2024

I've two repositories with identical steps:

- name: git-push
  image: appleboy/drone-git-push
  settings:
    ssh_key:
      from_secret: github_ssh_key
    remote: "${DRONE_GIT_SSH_URL}"
  when:
    branch:
    - master

One of them pushes successfully, other complains about the colon-in-url. What gives? DRONE_GIT_SSH_URL should refer to the remote syntax you suggested in either case.

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

No branches or pull requests

6 participants