html2text icon indicating copy to clipboard operation
html2text copied to clipboard

package broken by github.com/olekukonko/tablewriter release v1.0

Open cat-dealer opened this issue 11 months ago • 7 comments

The dependency github.com/olekukonko/tablewriter changed their public api with the v1.0 release from a few days ago, breaking this package (does not compile anymore).

Since go has only very limited version pinning support from v0.x.x to v1.x.x releases, this will affect/break most projects using this module.

For affected users:

You can temporarily force-pin the old dependency version in your go.mod file by adding this line:

replace github.com/olekukonko/tablewriter => github.com/olekukonko/tablewriter v0.0.5

But be aware that your linter/ci pipeline may complain about it.

cat-dealer avatar May 12 '25 15:05 cat-dealer

I created a PR that should make html2text work with the new tablewriter API. Please checkout #68 .

For a version of the PR that include go.mod, please see the branch tw-update-gomod

Necoro avatar Jun 04 '25 20:06 Necoro

Thank you @Necoro !! Maybe you could also take a quick look at this https://github.com/jaytaylor/html2text/pull/66 and add it to your fork?

seopei avatar Jun 07 '25 18:06 seopei

Hi @seopei,

my fork (or better: internal extension) of this library is tailored towards the need of feed2imap-go, it is not intended for public consumption (read: you may use it, but there won't be support).

The bug you mentioned only happens in text-only mode -- which feed2imap-go does not use. So I won't merge it.

Feel free to fork and apply any branches you like.

Necoro avatar Jun 07 '25 22:06 Necoro

any update on this ?

khanakia avatar Aug 02 '25 16:08 khanakia

Is anyone going to fix this repo its currently broken and has been for many months ... bogus bandaid is to pin to a prior release ?????????????

scottstensland avatar Oct 01 '25 16:10 scottstensland

@scottstensland This repo is dead as it happens with OSS. Use a different one or fork yourself and apply the existing patches.

Necoro avatar Oct 01 '25 16:10 Necoro

FYI https://github.com/inbucket/html2text

iredmail avatar Oct 02 '25 02:10 iredmail