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

feat: allow to ignore version check #119

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

omerlh
Copy link
Contributor

@omerlh omerlh commented Jun 4, 2024

As discussed on #118 that's for supporting weird BAI files with wrong header 🤷

@adamdecaf
Copy link
Member

@omerlh can you run gofmt -s -w on that main.go file?

@omerlh
Copy link
Contributor Author

omerlh commented Jun 11, 2024

Yeah sure!

@adamdecaf
Copy link
Member

Sorry I missed this before but we don't want to be passing booleans around. I thought you were talking about an Options struct that goes on a BAI2 File, Reader, Writer, ValidateWith(...) which has an IgnoreVersion bool field.

This change would be a breaking change as-is and booleans make for bad parameters.

@omerlh
Copy link
Contributor Author

omerlh commented Jun 13, 2024

I am happy to change the code to support options parameters, but it needs to be populated from the CLI args... Also we can do that non-breaking with default values

@adamdecaf
Copy link
Member

@omerlh I moved ignoreVersion to an Options struct. Thoughts?

@omerlh
Copy link
Contributor Author

omerlh commented Jun 16, 2024

Looking good!

@adamdecaf adamdecaf merged commit 8d995b8 into moov-io:master Jun 17, 2024
5 checks passed
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