Skip to content

Commit

Permalink
fix: scrap replace in project descriptor for project rename
Browse files Browse the repository at this point in the history
This change is a holdover from when modules were renamed as part of the
project rename process. Because modules are no longer part of the
process (and thus module references do not need to be updated), there is
nothing to rename in the project descriptor.
  • Loading branch information
msmoiz committed Mar 18, 2023
1 parent 1e8a65c commit a1c575e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/workflows/rename_project/changesets/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use super::target::generate_target_changeset;
/// Generate a changeset to rename a code project from the
/// old project name to the new project name. This includes the
/// following changes:
/// - Replace old name with new name in project descriptor file
/// - Rename the project descriptor file
/// - Replace old name with new name in executable target file
/// - Rename executable target file
Expand Down Expand Up @@ -54,7 +53,6 @@ pub fn generate_code_changeset(context: &Context) -> Vec<Change> {
append_redirect_to_engine_config(project_root, old_project_name, new_project_name),
add_game_name_to_engine_config(project_root, new_project_name),
add_project_name_to_game_config(project_root, new_project_name),
replace_in_project_descriptor(project_root, old_project_name, new_project_name),
rename_project_descriptor(project_root, old_project_name, new_project_name),
rename_project_root(project_root, new_project_name),
]);
Expand Down Expand Up @@ -85,20 +83,6 @@ fn find_target_file_names(project_root: &Path) -> Vec<String> {
.collect()
}

fn replace_in_project_descriptor(
project_root: &Path,
old_project_name: &str,
new_project_name: &str,
) -> Change {
Change::ReplaceInFile(ReplaceInFile::new(
project_root
.join(old_project_name)
.with_extension("uproject"),
old_project_name,
new_project_name,
))
}

fn rename_project_descriptor(
project_root: &Path,
old_project_name: &str,
Expand Down

0 comments on commit a1c575e

Please sign in to comment.