16306: Exclude {rails}/config/environments from package.
authorTom Clegg <tom@curii.com>
Mon, 1 Feb 2021 19:32:56 +0000 (14:32 -0500)
committerTom Clegg <tom@curii.com>
Mon, 1 Feb 2021 19:35:38 +0000 (14:35 -0500)
In developer work trees, that directory is likely to have extra files
(already skipped by .gitignore) that will break the application if
included in the package.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/install/deps.go

index bb9949de7c23e2380be5d010fa4c258e9cf2806a..8a182bcb93d33531b70a136ae9bf30b5d66efc58 100644 (file)
@@ -449,6 +449,7 @@ rm ${zip}
                                "--exclude", "/log",
                                "--exclude", "/tmp",
                                "--exclude", "/vendor",
+                               "--exclude", "/config/environments",
                                "./", "/var/lib/arvados/"+dstdir+"/")
                        cmd.Dir = filepath.Join(inst.SourcePath, srcdir)
                        cmd.Stdout = stdout