question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failed to init from github enterprise (with a custom hostname) repository

See original GitHub issue

what happened

  1. command I use
vue init -c github:git.company.com:User/webpack-simple
  1. I expected the vue-cli clones the git repo from the specific URL to initiate a new project.

  2. but after answering the questions, it returns the following error:

vue-cli · Local template "git.company.com:User/webpack-simple" not found.

why it happens

I’ve checked the bin/vue-init file, It seems like it’s a conflict with the local template test, at here: https://github.com/vuejs/vue-cli/blob/master/bin/vue-init#L93-L94

./ - for Linux CWD,
\w: - for Windows Disk Volume?

But it DO CONFLICT with the given argument, because the download-git-repo doc says:

… you can also specify a custom host like gitlab:custom.com:owner/name. Feel free to submit an issue or pull request for additional host options.


In my case, I simply modified the file to bypass the local template testing:

#L94    if (!clone && /^[./]|(\w:)/.test(template)) {

Because I don’t know how to exactly test the local template path(so many scenarios), so this is an issue instead of PR.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
edwardorzcommented, Mar 17, 2017

When #341 should be released? I cloned the latest vue-cli repo & installed it locally, but I still fail to init from the custom gitlab which I am using. It gets stuck when ⠙ downloading template

1reaction
ETiVcommented, Jan 4, 2017

layer

‘templates/example’ will be github.com/templates/example

I think it’s better to add a switch to the command line arguments to specify whether to use a local template. Like:

vue init --local ${LOCAL_PATH}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring a hostname - GitHub Enterprise Server 3.5 Docs
Type the hostname you'd like to set for your GitHub Enterprise Server instance. Field for setting a hostname. To test the DNS and...
Read more >
Troubleshooting GitHub Actions for your enterprise
Runners not connecting to GitHub Enterprise Server with a new hostname. Stuck jobs and GitHub Actions memory and CPU limits.
Read more >
Troubleshooting custom domains and GitHub Pages
The domain name must be unique across all GitHub Pages sites. For example, if another repository's CNAME file contains example.com , you cannot...
Read more >
Unable to get sources from Github Enterprise with proxy #1281
I want to get source from Github Enterprise via an authentic... ... git 4dd2bf73) git init "d:\a\1\s" Initialized empty Git repository in ...
Read more >
Validating your domain settings - GitHub Enterprise Server 3.6 ...
Ensure that your domain settings are properly configured before booting up your GitHub Enterprise Server instance for the first time.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found