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

can't build #36

Closed
gedw99 opened this issue Aug 20, 2024 · 2 comments
Closed

can't build #36

gedw99 opened this issue Aug 20, 2024 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Aug 20, 2024

having trouble building this.

README Is also wrong as main is in cmd now and not root.

go install github.com/invopop/gobl.fatturapa/cmd/gobl.fatturapa@latest works

but if pull the src and build I get:

cd gobl.fatturapa//cmd/gobl.fatturapa && go install .
# github.com/invopop/gobl.fatturapa
../../eu.go:5:26: undefined: l10n.CountryCode
../../eu.go:35:25: undefined: l10n.CountryCode
../../address.go:36:21: invalid operation: addr.Country == l10n.IT (mismatched types l10n.ISOCountryCode and l10n.Code)
../../address.go:49:24: invalid operation: address.Country == l10n.IT (mismatched types l10n.ISOCountryCode and l10n.Code)
../../parties.go:178:20: invalid operation: id.Country == l10n.IT (mismatched types l10n.TaxCountryCode and l10n.Code)
../../transmission.go:63:47: invalid operation: cus.TaxID.Country != l10n.IT (mismatched types l10n.TaxCountryCode and l10n.Code)

It does not make sense ... what am I doing wrong :)

@gedw99
Copy link
Author

gedw99 commented Aug 20, 2024

works it out. needed a go.work :)

Might be good idea to fix the README regarding the path the to main.go

@gedw99 gedw99 closed this as completed Aug 20, 2024
@samlown
Copy link
Contributor

samlown commented Aug 20, 2024

Hi @gedw99! This looks like an issue with the latest GOBL and the changes we had to make recently to differentiate between tax and ISO country codes (we'd falsely assumed that countries would make an effort to keep them the same 🤦) This PR will fix it: #37

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

2 participants