Repository navigation
Commit fbf28df
fix(deps): update dependencies (#527)
* fix(deps): update dependencies
* test: the Hosts lens writes a tab back, which is what augeas does
TestAugeasTextLens round-tripped "127.0.0.1 localhost\n" and expected the space
to survive. With the bumped go-augeas it comes back as a tab, and the tab is
correct:
lenses/dist/hosts.aug:8 the record joins ipaddr and canonical with Sep.tab
lenses/dist/sep.aug:35 let tab = del Rx.space "\t"
In augeas a `del RE VALUE` matches RE on get and REGENERATES VALUE on put, so
any run of whitespace parses and a tab is written back. The lens does not
preserve the separator it read, and expecting it to was the error.
The previous expectation recorded an incomplete put rather than a design: the
bump pulls in go-augeas/augeas#11, "wire put for interpreted lenses", which is
what made the serialising direction real. So this dependency PR is the witness
that our own assertion was wrong — the assertion is corrected to MRI-agnostic
upstream behaviour, not relaxed.
Verified by running the round trip against a binary built from this branch:
"127.0.0.1\tlocalhost\n"
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent e71f4fa commit fbf28df
3 files changed
Lines changed: 870 additions & 852 deletions
0 commit comments