Bootstrap from artifact if no local DB exists for this project. */
| 7092 | |
| 7093 | /* Bootstrap from artifact if no local DB exists for this project. */ |
| 7094 | static void try_artifact_bootstrap(const char *project_name, const char *repo_path) { |
| 7095 | char db_buf[CBM_SZ_1K]; |
| 7096 | project_db_path(project_name, db_buf, sizeof(db_buf)); |
| 7097 | if (cbm_file_size(db_buf) < 0 && cbm_artifact_exists(repo_path)) { |
| 7098 | cbm_log_info("index.artifact_bootstrap", "project", project_name); |
| 7099 | cbm_artifact_import(repo_path, db_buf); |
| 7100 | } |
| 7101 | } |
| 7102 | |
| 7103 | /* Cap on excluded dir paths listed in the response — keep it compact on large |
| 7104 | * repos (node_modules / vendor / etc. can produce many skip points). The full |
no test coverage detected