Skip to content

Commit

Permalink
Do not upload deps' public sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Oct 17, 2023
1 parent f2e60e7 commit be5c5f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sw/client/common/command/upload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ sw::PackageDescriptionMap getPackages(const sw::SwBuild &b, const sw::support::S
// e.g. for patch dir or other dirs (server provided files)
// we might unpack to other dir, but server could push service files in neighbor dirs like gpg keys etc
auto files_map1 = primitives::pack::prepare_files(files, rd.lexically_normal());
for (const auto &[f1, f2] : files_map1)
for (const auto &[f1, f2] : files_map1) {
if (f2.empty()) {
continue; // probably Public/Interface sources from other projects
}
d->addFile(rd, f1, f2);
}

// unique deps
for (auto &dep : t.getDependencies())
Expand Down

0 comments on commit be5c5f9

Please sign in to comment.