-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Epic: Deprecate definitely-gp #8473
Epic: Deprecate definitely-gp #8473
Comments
@jankeromnes, assigned to you, since you helped review #7383 😃 Unless we can do smarter detection, we should probably remove definitely-gp as a source of inferred configurations. cc: @svenefftinge |
@jldec A quick fix for this could be to place the "kit" directory in definitely-gp under a "sveltejs" directory, to make the matching more precise. From past experience, anything with 4 letters or less is prone to false-positive matches, and should be configured as "org/repo", not just "repo". |
I would prefer to stop auto-matching on directories in definitely-gp and just document it's existence in our docs so that users can copy and maintain themselves. |
Related: #3746 |
+1 on deprecating the current behavior, too magical and causes undesired side-effects. However, also in light of #3746, it would be interesting to discuss how to keep this feature reimplementing it slightly differently. If I could have a user setting in which I can maintain my own list of repos that are checked fist, I could decide to opt-in for using the community-driven repo or even have my own private repo in which I configure Gitpod for private repos to which I cannot commit the |
Maybe ask the user whether to load a gitpod provided config or not during workspace start? |
Hey 👋🏼 , With https://github.com/gitpod-io/gitpod/pull/9094/files, We are setting the |
@Pothulapati Isn't the SAAS deployment set to false by default already? |
Hmm, Where is it being set? I couldn't find the configuration anywhere and hence the question! If it is already being set explicitly , then the change would go smooth! If not then it will be set to true after it's merged as the installer's default is being changed. 🤔 |
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. |
Reverted in #18306. It should be possible to re-apply the PR with some changes. |
Early Gitpod users were given the option of storing their config in https://github.com/gitpod-io/definitely-gp/ instead of in their own repo. This feature is not documented anymore.
Workspaces start by looking for a directory in definitely-gp which matches the repo name, and then use the configuration from that directory. The configuration can include both gitpod.yml and a Dockerfile.
There are several issues with this approach
See discord discussion
Proposal
Gitpod should deprecate the built-in runtime use of files from definitely-gp for workspace configuration.
A community-driven repo like https://github.com/shaal/awesome-gitpod would be a better way to share best practices of how to configure Gitpod for different frameworks or languages.
If there are significant numbers of repos in use which regulary depend on this capability, we should do this in 2 stages (if the number is small say < 100, we can simply remove the capability immediately):
The length of the deprecation period depends on how heavily used this feature is.
Background
I noticed when opening a repo called
kit
that the workspace was being initiazlized withpnpm
, even though it was configured for npm with a package-lock.json.A GitHub search revealed that the init and command tasks were probably coming from here: https://github.com/gitpod-io/definitely-gp/blob/master/kit/.gitpod.yml.
From the inference code here and implementation here it appears that opening a workspace on any repo whose name matches a directory in https://github.com/gitpod-io/definitely-gp will attempt to use the configuration from there.
To reproduce
For another example see https://gitpod.io/#https://github.com/gitpod-io/book
The text was updated successfully, but these errors were encountered: