@Override
    public LockFile.Builder toBuilder() {
        return builder().repositories(repositories)
                .artifacts(artifacts)
                .version(version)
                .configHash(configHash);
    }
Saves lockfile to current working directory.
smithy-cli/src/main/java/software/amazon/smithy/cli/commands/LockFile.java