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

error with a composed template (from private repository) #314

Open
davidB opened this issue Nov 18, 2020 · 0 comments
Open

error with a composed template (from private repository) #314

davidB opened this issue Nov 18, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@davidB
Copy link
Member

davidB commented Nov 18, 2020

Context:

  • create from a composed template via ssh url (like git@....)
  • the import is defined via an https url (like https:...) but on the same host than git
  • both repositories are private (same authn could be used)

Actual:

$ ffizer apply --source git@bitbucket.org:zzzz/template_python.git --destination dt2vec
Nov 18 15:20:02.170 WARN failed to download, error: GitRetrieve { dst: "/Users/xxx/Library/Caches/git/bitbucket.org/zzzz/template_ci/master", url: "https://bitbucket.org/zzzz/template_ci.git", rev: "master", source: Error { code: -3, klass: 4, message: "revspec \'master\' not found" } }, path: "/Users/xxxx/Library/Caches/git/bitbucket.org/zzzz/template_ci/master", src: SourceLoc { uri: SourceUri { raw: "https://bitbucket.org/zzzz/template_ci.git", path: "zzzz/template_ci", host: Some("bitbucket.org") }, rev: "master", subfolder: None }, sub-cmd: apply
Nov 18 15:20:02.173 ERRO cmd: CliOpts {
    verbose: 0,
    cmd: Apply(
        ApplyOpts {
            confirm: Never,
            update_mode: Ask,
            no_interaction: false,
            offline: false,
            src: SourceLoc {
                uri: SourceUri {
                    raw: "git@bitbucket.org:zzzz/template_python.git",
                    path: "zzzz/template_python",
                    host: Some(
                        "bitbucket.org",
                    ),
                },
                rev: "master",
                subfolder: None,
            },
            dst_folder: "dt2vec",
            key_value: [],
        },
    ),
}
Nov 18 15:20:02.173 ERRO failed: GitRetrieve {
    dst: "/Users/xxxx/Library/Caches/git/bitbucket.org/zzzz/template_ci/master",
    url: "https://bitbucket.org/zzzz/template_ci.git",
    rev: "master",
    source: Error {
        code: -3,
        klass: 4,
        message: "revspec \'master\' not found",
    },
}

Expected:

  • no error
  • maybe translate the https into the git@... if same host
  • ask for the password of the imported template
@davidB davidB self-assigned this Nov 18, 2020
@davidB davidB added the bug Something isn't working label Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant