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

feat(cmd/gf): add command gf init xxx -a to create an empty app template folder in mono-repo #3550

Merged
merged 7 commits into from
May 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: 获取 Module 错误
  • Loading branch information
oldme-git committed Apr 27, 2024
commit 93ea1a1789c0626a2ce5186804bec1921c8234d9
3 changes: 2 additions & 1 deletion cmd/gf/internal/cmd/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ func (c cInit) Index(ctx context.Context, in cInitInput) (out *cInitOutput, err
}
if in.MonoApp {
tempName = cInitRepoPrefix + cInitMonoRepo + "/" + cInitMonoRepoApp
in.Module = utils.GetImportPath(gfile.Pwd()) + "/" + in.Name
pwd := gfile.Pwd() + string(os.PathSeparator) + in.Name
in.Module = utils.GetImportPath(pwd) + "/" + in.Name
}

// Replace template name to project name.
Expand Down
Loading