Skip to content

add patched copy of go-libedit to work around knz/go-libedit#23 - #2

Merged
jclulow merged 1 commit into
masterfrom
go-libedit
Oct 12, 2021
Merged

jclulow merged 1 commit into
masterfrom
go-libedit

Conversation

@davepacheco

Copy link
Copy Markdown
Contributor

See knz/go-libedit#23. Prior to this, if you tried to use any of libedit's facilities in the cockroach sql interactive prompt (like, say, hitting up-arrow to go through your command history), it wouldn't work. I tested this basically just by running cockroach sql, running SELECT NOW(), then hitting up-arrow to get back to it. It did what I expected. Previously, it printed control characters to the terminal.

I created the patch by copying a clone of knz/go-libedit with my fix in it into ./cockroach/patches/github.com/knz/go-libedit and then rm -rf .git in that directory. Let me know if that was the wrong thing to do here.

This change also updates the GOVER to 1.16.5 because that's what's in Helios.

@davepacheco
davepacheco requested a review from jclulow September 17, 2021 04:56
@jclulow

jclulow commented Oct 12, 2021

Copy link
Copy Markdown
Collaborator

I've built and tested that this works (with line editing) for me. Thanks!

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.

2 participants