#4664·keploy

keploy mock record ignores mock.name from keploy.yml

Author: prabaltripathiofficialCreated Sep 30, 2026Updated Sep 30, 2026

keploy mock record always records into keploy/default/, even when keploy.yml sets mock.name.

The --name flag is registered with c.cfg.Mock.Name as its default before keploy.yml is loaded (cli/provider/cmd.go, the mock record/replay flags), so the default is always default, and readMockSetName then takes the flag's value even when the flag was not passed, overwriting the keploy.yml value.

Expected: an explicit --name wins; otherwise mock.name from keploy.yml; otherwise default. keploy mock publish/pull without -t read mock.name and can miss a set that record wrote to default.