Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Fix building the collection failing on MacOS
Browse files Browse the repository at this point in the history
due to an `install` command error.

fixes: #823
  • Loading branch information
mikedep333 committed Jan 13, 2022
1 parent 50c5bbe commit fef930a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/823.bugfix
@@ -0,0 +1 @@
Fix building the collection failing on MacOS due to an `install` command error.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -43,8 +43,10 @@ test: $(MANIFEST)
$(MANIFEST): $(NAMESPACE)-$(NAME)-$(VERSION).tar.gz
ansible-galaxy collection install -p build/collections $< --force

# We cannot use a single `install -DT` command here because MacOS `install` lacks `-D` & `-T`.
build/src/%: %
install -m 644 -DT $< $@
install -m 755 -d $(@D)
install -m 644 $< $@

$(NAMESPACE)-$(NAME)-$(VERSION).tar.gz: $(addprefix build/src/,$(DEPENDENCIES))
ansible-galaxy collection build build/src --force
Expand Down

0 comments on commit fef930a

Please sign in to comment.