Skip to content

RFC - Revert "cmds/core/gosh: replace go-prompt with bubbline"#2666

Closed
10000TB wants to merge 6 commits into
mainfrom
revert-2606-gosh-bubbline
Closed

RFC - Revert "cmds/core/gosh: replace go-prompt with bubbline"#2666
10000TB wants to merge 6 commits into
mainfrom
revert-2606-gosh-bubbline

Conversation

@10000TB
Copy link
Copy Markdown
Member

@10000TB 10000TB commented Apr 27, 2023

Reverts #2606

Let's consider switch back to go-prompt, which has more public interests
which can be assumed better maintained, w.r.t reliability and security.

Did we consider submitting the "new features" into go-prompt ?

@10000TB 10000TB requested a review from MDr164 April 27, 2023 20:23
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2023

Codecov Report

Patch coverage: 76.27% and project coverage change: +0.08 🎉

Comparison is base (d2419fc) 75.24% compared to head (4039006) 75.32%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2666      +/-   ##
==========================================
+ Coverage   75.24%   75.32%   +0.08%     
==========================================
  Files         413      413              
  Lines       41943    41889      -54     
==========================================
- Hits        31560    31554       -6     
+ Misses      10383    10335      -48     
Impacted Files Coverage Δ
cmds/core/gosh/gosh.go 54.00% <54.83%> (+33.76%) ⬆️
cmds/core/gosh/completer.go 100.00% <100.00%> (+31.25%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@10000TB 10000TB requested review from a team and rminnich April 27, 2023 20:23
@10000TB
Copy link
Copy Markdown
Member Author

10000TB commented Apr 27, 2023

Duplicate to #2606 (comment), looking for author replies

@MDr164
Copy link
Copy Markdown
Contributor

MDr164 commented Apr 28, 2023

Duplicate to #2606 (comment), looking for author replies

#2606 (comment)

@hugelgupf
Copy link
Copy Markdown
Member

hugelgupf commented Apr 28, 2023 via email

@10000TB
Copy link
Copy Markdown
Member Author

10000TB commented Apr 29, 2023

Thanks for getting back to me Marvin. Left my clarification in your original PR

#2606 (comment)

re: size. can't import latest u-root atm, don't know size impact yet

@10000TB
Copy link
Copy Markdown
Member Author

10000TB commented May 1, 2023

In addition, Google has been following an upstream first approach, where we strives to put every golang cmd / pkg we develop for Google, into u-root as much as possible. Making it harder for us to ingest u-root would disincentivize people from contributing to u-root where possible, and instead check them into internal only repos.

@10000TB
Copy link
Copy Markdown
Member Author

10000TB commented May 2, 2023

ping

This reverts commit fd0aca2.

Signed-off-by: David Hu <xuehaohu@google.com>
@10000TB 10000TB force-pushed the revert-2606-gosh-bubbline branch from 37a37a7 to 5d86880 Compare May 2, 2023 04:22
@MDr164
Copy link
Copy Markdown
Contributor

MDr164 commented May 2, 2023

I see your point. I'm also in favor of having less dependencies. The issue right now is the following:
Using go-prompt:

  • Somewhat broken (leave the term in a weird state, can't handle edgecases, as several open issues)
  • Original repo abandoned -> we needed a fork in order to get fixes in -> more maintainance
  • Less dependencies

Using bubbline:

  • Not broken as go-prompt
  • Still maintained upstream
  • More dependencies -> higher investment for Googles internal use

Ideal solution: Write tab completer from scratch using only the standard library.

So using either library will upset some users. Bubbline upsets Google, go-prompt upsets everyone else (and probably Google as well as it's still somewhat broken). If someone has the time to implement the completer from scratch then I'm more than happy to review a PR for that but I'm swamped in work so I can't take that on myself.

@hugelgupf
Copy link
Copy Markdown
Member

hugelgupf commented May 2, 2023 via email

@hugelgupf hugelgupf closed this May 2, 2023
@jelischer
Copy link
Copy Markdown
Contributor

Ironic that the tab completion is seen as a positive when inside Google we are trying to find a way to disable it.

@hugelgupf hugelgupf deleted the revert-2606-gosh-bubbline branch March 4, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants