-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Should we have snapshot_kind: text
in snap files?
#676
Comments
I haven't put much weight on the cost of the churn — maybe it's higher than I expected. Do others / @mitsuhiko have thoughts? How would you see this happening through time? Would we never add the field for text snapshots? Assuming we introduce it at some point in the future, is there a benefit to pushing it to the future? And to set the context for the discussion — as you point out — the field is only added with |
snapshot_kind: text
from snap filessnapshot_kind: text
in snap files?
Yes, I think "less is more" applies here - there is near-zero value of explicitly adding |
OK, I'll leave open to see if others have a view. I appreciate it's some aesthetic churn. But OTOH it only appears when updating snapshots. And for those who care about the cleanliness of diffs, doing a single run of Let's see what @mitsuhiko & others think over the next few weeks. For transparency, if we don't get traction, I plan to leave the current state. |
@max-sixty one more reason I think it is important: I used to have |
OoI, why not
I'm not sure I understand — is this a bug? We will fix them if we can repro them. Otherwise it's difficult to put much weight on it in making this decision... |
(Also thanks for engaging and caring about insta @nyurik — I'm pushing back a bit because I want to be transparent, in contrast to leaving the issue to wither; hope you interpret that as reasonable) |
I think it makes sense to default to |
OK! I'll make this change. (will be a few days as am traveling, if anyone is in a rush feel free to have a go, will merge and release quickly if so) |
hi @max-sixty, is this still planned? I don't want to step on anyone's toes though :) |
Is it, sorry, I have been super busy at work since returning. I'll try to get to in the next few days. I would also very happily take a PR! But even if not, I will get to it... |
We keep getting that line added and removed from https://github.com/martinvonz/jj/blob/main/cli/tests/cli-reference%40.md.snap, depending on what version of So, if there could be a Fortunately, it's not a huge deal since |
The binary support is a great step, but I don't think it warrants a massive regeneration of all the snapshot files in all the projects - which always happens if someone does a
rm -rf expected
+ bless new results. I think the snapshot files should implicitly be text unless they have asnapshot_kind: ...
value.text
should also be supported there, but I don't think its a good idea to generate it... just due to the churn it causes the whole ecosystem.The text was updated successfully, but these errors were encountered: