I am using the following command to test my policy.hujson in PRs:
$ gitops-pusher -policy-file policy.hujson -github-syntax=false test
Seemingly out of the blue, we started running into json marshal errors:
2023/07/18 21:08:27 no previous etag found, assuming local file is correct and recording that
2023/07/18 21:08:27 control: foo
2023/07/18 21:08:27 local: bar
2023/07/18 21:08:27 cache: bar
The policy file was modified externally in the admin console.
json: cannot unmarshal string into Go struct field ACLTestError.data of type main.ACLTestErrorDetail
Exited with code exit status 1
However, the error goes away when I apply the contents of policy.hujson (that I am testing with the gitops-pusher binary) to the Tailscale ACL Console and re-run CI.
Any thoughts? I am using hujsonfmt to lint the file so I don't really think it's a syntax error?
I'm running into a weird error.
I am using the following command to test my
policy.hujson
in PRs:Seemingly out of the blue, we started running into json marshal errors:
However, the error goes away when I apply the contents of
policy.hujson
(that I am testing with thegitops-pusher
binary) to the Tailscale ACL Console and re-run CI.Any thoughts? I am using
hujsonfmt
to lint the file so I don't really think it's a syntax error?