Skip to content

Commit 2913d26

Browse files
mbeutelspacherwentasah
authored andcommitted
fix: remove existing VCS_TYPE in patchAmentVendorGit
1 parent 5d5cb63 commit 2913d26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@
110110
nativeBuildInputs = nativeBuildInputs ++ [ self.git ];
111111
postPatch = (
112112
if pathExists vendoredSourceJson then
113+
# Remove all existing VCS_TYPE lines
114+
''
115+
sed -i '/VCS_TYPE \(git\|zip\|svn\|path\)/d' ${lib.escapeShellArg file}
116+
'' +
113117
# Iterate over all ament_vendor calls (i.e. targets) and try
114118
# to patch them. To not match an already patched line, we add
115119
# the bracketed comment #[[patched]]. To patch only one line

0 commit comments

Comments
 (0)