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

Support for installing in "bare" with depth=1 and no .git folder #260

Open
SamMousa opened this issue May 13, 2021 · 4 comments
Open

Support for installing in "bare" with depth=1 and no .git folder #260

SamMousa opened this issue May 13, 2021 · 4 comments
Labels

Comments

@SamMousa
Copy link
Contributor

Tools like npm have a special command for use in CI environments.

It would be great if gitman had something like this as well.
It should install dependencies and remove the .git dirs so that we don't unnecessarily bloat our builds.

@jacebrowning
Copy link
Owner

Yeah, that sounds useful! How is this npm mode enabled?

@SamMousa
Copy link
Contributor Author

Separate command: npm ci

@jacebrowning
Copy link
Owner

Thanks!

I think I'd be in in favor of a command-line option that can be passed to both install and update.

-b / --bare perhaps.

@SamMousa
Copy link
Contributor Author

Builds should not be updating dependencies. Composer the PHP manager has some switches to get the oldest dependencies within constraints, this aids in testing.

It is never a good idea to call gitman update in CI.

@jacebrowning jacebrowning changed the title Support for packaging Support for installing in "bare" with depth=1 and no .git folder Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants