-
Notifications
You must be signed in to change notification settings - Fork 7
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
make git optional #97
Comments
I also often avoid setting user.email and user.name globally. Maybe we can have it skip those git steps if those aren't configured and/or provide an option that enables/disables the git generation? I'm undecided on whether using a library for git or scripting the cli is better, I'm curious how much it saves on binary size not having it. The cli interface for git appears to be pretty stable and avoids having a possible version conflict between the library and what the user uses on their system. If we stick with scripting the cli as a minimum we should have a proper error message if I will bring up both issues with the team. |
I just submitted a PR for that #98
Personally, I prefer not using any git if there's no submodule in the I think the |
I discussed with the team and for the general case we want to keep the git initialization of new projects. However, we'd accept a change adding in a flag to disable it or possibly set the git info to use. Otherwise, it's also an option to avoid using the extism cli and use the template repos without it. On git downloading, we'd accept a change to switch to |
Using git during the generate process assumes certain prerequisites, like having git installed and setting global user.name and user.email. However, I prefer not to set global git user.name and user.email, opting instead to set them per project, which results in an error during generation:
cli/generate.go
Line 145 in 0a713d1
Furthermore, based on the code, git is primarily used for cloning, which is not essential.
There's a submodule in https://github.com/extism/c-pdk-template
How about using go-git?
I'm trying to develop an extension system with this project. I aim to assume that the users creating extensions have as few relevant skills as possible, which is one reason why untrusted code is an issue, isn't it?
The text was updated successfully, but these errors were encountered: