Hi,
This is more of an Appveyor question, but it is for a Julia repo, so I hope
it is ok to ask here.
I have a private repo A.jl. This repo uses another private repo B.jl, so in
my appveyor.yml, I am trying to clone B.jl when building A.jl.
This is the build script:
build_script:
# Need to convert from shallow to complete for Pkg.clone to work
- IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia -e "versioninfo();
Pkg.clone(pwd(), \"A\"); Pkg.build(\"A\");
Pkg.clone(\"https://github.com/EricForgy/B.jl.git\")"
I am able to get A.jl to build, but cloning isn't working for B.jl.
Here is the error message:
INFO: Cloning Pages from https://github.com/EricForgy/B.jl.git
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
ERROR: chmod: no such file or directory (ENOENT)
in chmod at fs.jl:184
in rm at file.jl:58
in clone at pkg/entry.jl:162
in clone at pkg/entry.jl:160
in clone at pkg/entry.jl:186
in anonymous at pkg/dir.jl:31
in cd at file.jl:32
in cd at pkg/dir.jl:31
in process_options at client.jl:257
in _start at client.jl:377
Command exited with code 1
I found the following "How-to" that seems related:
- Building private GitHub repositories with sub-modules
<https://www.appveyor.com/docs/how-to/private-git-sub-modules>
B is not a submodule of A, but it seems like the SSH stuff is relevant.
Should I try to the steps generating a key, etc, or is there any easier way
to clone a private repo while building a private repo?
Thanks for any help.
Best regards,
Eric