Skip to content
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

Decompose interface interfering and breaking #154

Open
aarondl opened this issue Jul 20, 2020 · 8 comments
Open

Decompose interface interfering and breaking #154

aarondl opened this issue Jul 20, 2020 · 8 comments

Comments

@aarondl
Copy link

aarondl commented Jul 20, 2020

Hi Eric :)

This issue has been a long-standing thorn in our side:
volatiletech/sqlboiler#803
volatiletech/sqlboiler#607

Problem begins here (I think):
50723dc

We've been telling people to pin at the last tagged version (v3.3.1) and this works because there hasn't been a new tag in quite a long time (that's the latest).

So two questions/problems:

  • When might we see a new version of the decimal library? :) I also notice that https://github.com/ericlagergren/decimal/blob/master/go.mod is incorrect (missing /v3 suffix) and so it's not a correct Go module. Is it time for a v4 to correct the semantic import versions? (sqlboiler/authboss both had to do a major version bump to move to Go modules).
  • Are we sure this decompose implementation works? We're seeing nothing but failures as soon as we change to master.

Just wanted to get the ball rolling on this issue.

@ericlagergren
Copy link
Owner

I suppose it might make sense to drop decomposer support, or have a separate branch for it. Seems to have caused more trouble than benefits.

@kardianos
Copy link
Contributor

@aarondl I'm looking into the issue as well.

@hamstah
Copy link

hamstah commented Oct 20, 2020

Hi,
Is this still being considered?
Is there a way I can help resolve it?
Thanks!

@kardianos
Copy link
Contributor

Sorry for the delay. This summer was shot.

I analyzed the problem: golang/go#30870 (comment)

I would prefer to update database drivers to support decimal values using the decomposer. But it really depends on what the community want to do.

@hamstah
Copy link

hamstah commented Nov 2, 2020

@kardianos great thanks! Will follow the item there.

@zhongduo
Copy link

Hi team, while I appreciate the great effort to formalize decimal in Go. I really doubt the proposal will go anywhere considering the fact that it has been open for 3 years by now. At this point I think we should simply revert the decompose interface in this repo so that people can get the latest code. It is literally preventing everyone from updating the repo now, and sadly sqlboiler is using a version with the decomposer commit now.

@ericlagergren
Copy link
Owner

Depending on what sqlboiler thinks, I’m fine with reverting the interface.

@zhongduo
Copy link

Depending on what sqlboiler thinks, I’m fine with reverting the interface.

I cannot speak for sqlboiler, maybe @stephenafamo can comment more. I did move the dependency before that commit to unblock users in the latest version, though they can still update repo manually.

The problem now is that currently sqlboiler will now never be able to use the latest decimal version, and I am not sure how many other framework will trigger this bug. But since this is now a public API, I am also not sure how many code repos are depending on this interface now. Maybe @kardianos will have more insight on this. But if we are convinced that the original proposal won't land and the use of this interface is minimal, there is no reason to keep it.

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

No branches or pull requests

5 participants