gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Option to never create `.gitpod.yml`

Open Milo123459 opened this issue 4 years ago • 14 comments

Is your feature request related to a problem? Please describe

Sometimes when contributing to a repository, you don't want Gitpod to make a .gitpod.yml. You can add it to the gitignore, but many projects like to keep their gitignores minimal. An option to disable a gitpod.yml file from being created would be nice.

Describe the behaviour you'd like

An option in settings to stop gitpod from creating the file.

Describe alternatives you've considered

N/A

Additional context

Milo123459 avatar Jan 09 '22 13:01 Milo123459

Thanks for filing this feature request!

Note for the Meta team: If this is a highly requested and valuable feature, one relatively easy solution could be to make the .gitpod.yml inference code check for whether .gitignore has a .gitpod.yml entry, and in this case abandon guessing the config.

This would have the desired effect of not adding a .gitpod.yml to a workspace when the project "doesn't want it", and doesn't require a big implementation effort or UI design.

jankeromnes avatar Jan 11 '22 09:01 jankeromnes

@jankeromnes I had suggested him to put /.gitpod.yml in his repository .gitignore but his point was: It’s just that I’m contributing to a project and don’t want to add unnecessary clutter cc @Milo123459

axonasif avatar Jan 13 '22 03:01 axonasif

Ah @Milo123459. Ace suggestion. For anyone who needs this immediately, https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#excluding-local-files-without-creating-a-gitignore-file would be a good workaround for now.

stemount avatar Jan 15 '22 19:01 stemount

Ah @Milo123459. Ace suggestion. For anyone who needs this immediately, https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#excluding-local-files-without-creating-a-gitignore-file would be a good workaround for now.

That's a nice alternative but unfortunately makes no difference since he will have to do that himself each time he opens a public repo where he wants to quick-contribute. Still the manual step remains.

axonasif avatar Jan 16 '22 04:01 axonasif

@Milo123459 this is possible with the brand new dotfiles support. Just use this repo link: https://github.com/axonasif/autodel_gitpod_yml on the dotfiles field at https://gitpod.io/preferences/

Or copy the contents of install.sh if you have your own dotfiles repo.

axonasif avatar Jan 16 '22 05:01 axonasif

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 06:04 stale[bot]

Can we revisit this? It's super annoying for me (and so many others) to have to delete this file on repo's we either don't want it on or don't have the say whether it exists or not

The dotfiles solution @axonasif gave is a great temporary solution but long term it feels like a workaround to patch a deceptive pattern

ghostdevv avatar Nov 28 '22 14:11 ghostdevv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 18 '23 05:03 stale[bot]

Not stale :pray:

ghostdevv avatar Mar 18 '23 15:03 ghostdevv

Not stale :pray:

ghostdevv avatar Apr 03 '23 22:04 ghostdevv

@Milo123459 this is possible with the brand new dotfiles support. Just use this repo link: https://github.com/axonasif/autodel_gitpod_yml on the dotfiles field at https://gitpod.io/preferences/

Doesn't work for me for some reason - each new workspace contains .gitpod.yml even after I have added the repo to Preferences > Dotfiles.

I'd like a .gitpod.yml just not get created ever in any of my workspaces. Please add this checkbox somewhere, this is literally the only small (but very annoying) thing that stops me from being a paying customer :)

sergey-melnychuk avatar Apr 08 '23 21:04 sergey-melnychuk

👋 @sergey-melnychuk can you try again? Should be working now.

axonasif avatar Apr 17 '23 03:04 axonasif

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 17 '23 11:09 stale[bot]

not stale

Milo123459 avatar Sep 17 '23 14:09 Milo123459