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
abcweb new failed to copy templates on project with multiple GOPATH #13
Comments
I'm presuming abcweb is installed in the go-base path and not the cashkit path? I'm strongly suspecting this problem is occurring because it's looking for the templates for abcweb in cashkit when obviously they do not exist there. Let me confirm that is indeed the problem first, before proposing a solution. I'll get back to you. There will be a few possible routes we can take to solve this. Provided I'm correct about what I think is going on here a work around would be to move the abcweb install to the other gopath. |
Indeed, that is the case here. Abcweb failed because installed on the
go-base path.
…On Jul 8, 2017 12:10, "nullbio" ***@***.***> wrote:
I'm presuming abcweb is installed in the go-base path and not the cashkit
path? I'm strongly suspecting this problem is occurring because it's
looking for the templates for abcweb in cashkit when obviously they do not
exist there. Let me confirm that is indeed the problem first, before
proposing a solution. I'll get back to you. There will be a few possible
routes we can take to solve this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA_AFtcah9mLjE813yyzSZ3_FhCeF49pks5sLw9PgaJpZM4OPW52>
.
|
Sorry it took so long to get back to you on this, I've been very busy with some work stuff and hadn't had a chance to test it out. A few questions:
I'm trying to replicate this on Linux and not having much success. |
I remove the split stuff and instead go get using the project path. I will replay the step later after #14 is resolved. Currently it's not possible to go get abcweb. |
Working on that right now. I've forked that repo, will be maintaining it myself moving forward. Just adding a few other changes like Chi v3 then I'll merge it into master. Will keep you posted. |
I've released v3 which addresses the refresh library problem: https://github.com/volatiletech/abcweb/releases/tag/v3.0.0 -- you should be good to experiment now. Thank you. |
Here is the full workflow. But it's working correctly if using single GOPATH. |
Env:
Windows 10 64bit
Go 1.8.3 64bit
Step to introduce:
Expected:
Application generate new project
Result:
Failed with error: cannot locate base path containing templates folder
Output:
$ abcweb new gitlab.com/xxx/cashkit/
Your GOPATH has multiple paths, select your desired GOPATH:
[1] C:\Users\Airlangga\Projects\cashkit
[2] C:\Users\Airlangga\Application\go-base
Select GOPATH number: 1
1
Generating in: C:\Users\Airlangga\Projects\cashkit\src\gitlab.com\xxx\cashkit
Error: cannot locate base path containing templates folder
Usage:
abcweb new <import_path> [flags]
Examples:
abcweb new github.com/yourusername/myapp
... *cutout to reduce noise
$ echo %GOPATH%
C:\Users\Airlangga\Projects\cashkit;C:\Users\Airlangga\Application\go-base
The text was updated successfully, but these errors were encountered: