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

allow usage together with other golden packages #45

Merged

Conversation

tadeokondrak
Copy link
Contributor

Other packages can also define an -update flag. In general we can't be compatible with every possible conflicting flag, but for this specific flag we assume that it's a boolean flag with the same meaning as ours.

My motivation for this change is usage of autogold along with gotest.tools/v3/assert, which among other things, has its own golden tests functionality.


There's an open PR for gotest.tools/v3/assert to do the same - see gotestyourself/gotest.tools#271.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

Other packages can also define an -update flag. In general we can't be
compatible with every possible conflicting flag, but for this specific
flag we assume that it's a boolean flag with the same meaning as ours.

My motivation for this change is usage of autogold along with
gotest.tools/v3/assert, which among other things, has its own golden
tests functionality.
autogold.go Outdated Show resolved Hide resolved
Copy link
Member

@slimsag slimsag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's useful - thanks!

@slimsag slimsag merged commit f28e503 into hexops:main Jul 14, 2023
2 checks passed
@endigma endigma mentioned this pull request Jul 28, 2023
michaellzc pushed a commit to michaellzc/autogold that referenced this pull request Sep 6, 2023
* allow usage together with other golden packages

Other packages can also define an -update flag. In general we can't be
compatible with every possible conflicting flag, but for this specific
flag we assume that it's a boolean flag with the same meaning as ours.

My motivation for this change is usage of autogold along with
gotest.tools/v3/assert, which among other things, has its own golden
tests functionality.

---------

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
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.

None yet

2 participants