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

Artifact with git repo do not work #8986

Closed
spuder opened this issue Sep 30, 2020 · 2 comments
Closed

Artifact with git repo do not work #8986

spuder opened this issue Sep 30, 2020 · 2 comments

Comments

@spuder
Copy link
Contributor

spuder commented Sep 30, 2020

According to the documentation, it should be possible to download from a git repo using the artifact

artifact {
  source      = "git::https://github.com/example/nomad-examples"
  destination = "local/repo"
}

or

artifact {
  source      = "[email protected]:example/nomad-examples"
  destination = "local/repo"
  options {
    sshkey = "<string>"
  }
}

https://www.nomadproject.io/docs/job-specification/artifact

However when using the syntax as shown, it fails with error: could not read Username for 'https://gitlab.example.com': No such device or address

      artifact {
        source = "git::https://gitlab.example.com/foo/bar.git"
        destination = "local/bar"
      }
failed to download artifact "git::https://gitlab.example.com/foo/bar.git": error downloading 'https://gitlab.mx.com/mx/firefly.git': /usr/bin/git exited with 128: Cloning into '/opt/nomad/alloc/49009aa0-b332-1fc6-b84c-ea954f5cc44b/subscriber/local/bar'... fatal: could not read Username for 'https://gitlab.example.com': No such device or address
@spuder
Copy link
Contributor Author

spuder commented Sep 30, 2020

Accidentally clicked open before I had the reproduction steps in order. I'll reopen once I can reproduce more cleanly

@spuder spuder closed this as completed Sep 30, 2020
@github-actions
Copy link

github-actions bot commented Nov 1, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant