Skip to content

Commit

Permalink
fix template dot-files (#10342)
Browse files Browse the repository at this point in the history
The `cp $SRC/$d/*` does not copy dot files.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
garyverhaegen-da authored Jul 21, 2021
1 parent cf2b61e commit e58c7ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions templates/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ genrule(
[
"default-gitattributes",
"default-gitignore",
"default-dlint-yaml",
"default-dlint.yaml",
"skeleton/**",
"empty-skeleton/**",
"create-daml-app/**",
Expand All @@ -68,10 +68,13 @@ genrule(
for d in skeleton empty-skeleton create-daml-app quickstart-scala quickstart-java; do
mkdir -p $$OUT/$$d
cp -rL $$SRC/$$d/* $$OUT/$$d/
# use default .gitignore and .dlint.yaml if they don't exist in the template
cp -n $$SRC/default-gitattributes $$OUT/$$d/.gitattributes
cp -n $$SRC/default-gitignore $$OUT/$$d/.gitignore
cp -n $$SRC/default-dlint-yaml $$OUT/$$d/.dlint.yaml
for f in gitattributes gitignore dlint.yaml; do
if [ -f "$$SRC/$$d/.$$f" ]; then
cp "$$SRC/$$d/.$$f" "$$OUT/$$d/.$$f"
else
cp "$$SRC/default-$$f" "$$OUT/$$d/.$$f"
fi
done
# We avoid introducing infix syntax in the GSG so we disable
# the lint there.
if [ "$$d" = "create-daml-app" ]; then
Expand Down
Empty file added templates/NO_AUTO_COPYRIGHT
Empty file.
File renamed without changes.

0 comments on commit e58c7ba

Please sign in to comment.