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

Show warning when git is not initialized #39

Open
vytautas-pranskunas- opened this issue Jul 14, 2016 · 13 comments
Open

Show warning when git is not initialized #39

vytautas-pranskunas- opened this issue Jul 14, 2016 · 13 comments

Comments

@vytautas-pranskunas-
Copy link

When installing guppy-pre commit (not surr about others) show warning message if git folder is missing instead of hanging whole npm i process

@therealklanni
Copy link
Owner

Did you try npm i --production like I suggested?

@vytautas-pranskunas-
Copy link
Author

I left you comment regarding this in another post

therealklanni/git-guppy#82 (comment)

@therealklanni
Copy link
Owner

You said:

Hi, i cannot do that because on CI is building dev env and running karma tests which are under dev dependency same as guppy.

I don't think this is necessarily an issue with guppy. It seems to me more like an issue with how your CI is set up. You should probably check out the branch in your CI, rather than (what I assume you're doing is) copying your codebase to CI. That way you have the .git folder structure. Unfortunately, guppy cannot run without that. Your other option is to set up your CI to remove the guppy dependency when CI starts it's build/run process if you don't want guppy in the CI at all (not the best/easiest approach).

The first option is probably the best approach, because then you can simply write your gulp pre-commit (and whatever other hooks you're using) to skip if the NODE_ENV is "staging" or whatever you call the CI env.

I'm just not fully convinced the responsibility is on guppy.

@vytautas-pranskunas-
Copy link
Author

So you claim that plugin rather then throw warning should hang whole process?

@therealklanni
Copy link
Owner

No, I'm telling you that it seems like your CI is not properly set up. If it were properly set up, you wouldn't have an issue.

@vytautas-pranskunas-
Copy link
Author

Can you fix that it would not hang the process because it is a matter of one if exists check, and we will improve our build process?

@therealklanni
Copy link
Owner

I can look into it and see if it's a useful change. It's going to be pretty low priority, though, considering it's easy to resolve with a proper CI setup.

@vytautas-pranskunas-
Copy link
Author

I know what you mean but in large corporations where you do not have rights to influence build process such simple lib change can safe loads of time while banging head to get permissions or describe problems to devops. So i would be really greatfull if you add that 5mins fix.

@therealklanni
Copy link
Owner

You're welcome to submit a PR for review. Unfortunately, I have a lot of other things that are higher priority for me, so I won't be able to give this attention right away. I'm sorry.

@vytautas-pranskunas-
Copy link
Author

I think i would not have time for PR, if devops wpuld not change build way i will have to look fol alternative lib. However i think it is good developement practice to make isolated libs to not break whole chain 😏

@therealklanni
Copy link
Owner

Again, sorry you're having issues with your build. You keep asserting that guppy is breaking your build, unfortunately I don't agree with that assertion. It sounds like your build is not correctly configured. I don't mind adding it as an enhancement, but it's pretty low priority considering you're the only one requesting the enhancement. Sorry if it sounds insensitive to your situation, it's just that I have a lot of other things on my plate that are more urgent.

If you or someone else can work on this in a more timely manner than I can, I would definitely appreciate the contribution.

mhoyer pushed a commit to mhoyer/guppy-cli that referenced this issue Aug 3, 2016
mhoyer pushed a commit to mhoyer/guppy-cli that referenced this issue Aug 3, 2016
mhoyer pushed a commit to mhoyer/guppy-cli that referenced this issue Oct 8, 2016
@jachin84
Copy link

This issue also broke our CI build. If you are using TeamCity with the built-in git configuration the .git folder is not copied to the agents working directory. You can fix the issue by installing the latest version of Git which does seem to create the .git folder in the working directory.

@kane-mason
Copy link

also getting this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants