cossacklabs / acra

Database security suite. Database proxy with field-level encryption, search through encrypted data, SQL injections prevention, intrusion detection, honeypots. Supports client-side and proxy-side ("transparent") encryption. SQL, NoSQL.
https://www.cossacklabs.com/acra/
Apache License 2.0
1.33k stars 128 forks source link

Update go:generate instructions for mockery #576

Closed Lagovas closed 1 year ago

Lagovas commented 1 year ago

Found that go generate generates new files that not under git control. This instructions generate files in acra/keystore/kms/base/mocks folder. But we use mocks from acra/keystore/mocks. I think it was tested locally from keystore/kms folder and left as is. But we run and stay with approach of running from root of repo, so I updated paths to generate them where they are expected.

Also, found that my local mocker version v2.12.3 cannot re-generate mocks (when I tried to test with new paths) fails due to variables' name similar to package (context name used and similar to context package), and produced extra warnings. So, tested and re-generated with fresh v2.14.0 version to be sure that tests pass with new paths.

Checklist