Skip to content

Remove migrations-php.yaml in favor of copying entire directory #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Oct 27, 2016

For local builds, this removes the need to manually list each source file in the migrations YAML file, which is bound to have problems once we multiple branches.

@@ -18,6 +18,12 @@ help:
@echo 'Variables'
@echo ' ARGS - Arguments to pass to mut-publish'

html:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach was suggested by @i80and, but I imagine it needs better integration with the actual deploy make targets below.

rm -r source/
mkdir source
cp -a build/php-library/docs/* source
giza make html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giza make publish

html:
rm -r source/
mkdir source
cp -a build/php-library/docs/* source
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@i80and suggests using rsync --delete here instead of the rm, mkdir, cp bits.

@@ -18,6 +18,10 @@ help:
@echo 'Variables'
@echo ' ARGS - Arguments to pass to mut-publish'

publish:
rsync -a --delete build/php-library/docs/ source/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruhroh. If you start from an empty build directory, this errors out:

~/docs-php-library(master) $make publish
rsync -a --delete build/php-library/docs/ source/
rsync: link_stat "/Users/allison/docs-php-library/build/php-library/docs/." failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(992) [sender=2.6.9]

It seems to be attempting to run before the PHP Library repo is cloned to build/php-library/… Thoughts @i80and?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ehhhhh shoot I should have expected that. How do you folks feel about using git submodules instead of giza's assets system?

For example, you would run git submodule add -f -b master -- https://github.com/mongodb/mongo-php-library.git build/php-library, and then git submodule update right before the rsync

@schmalliso
Copy link
Contributor

Merged!

@schmalliso schmalliso closed this Nov 1, 2016
@jmikola jmikola deleted the remove-migrations branch November 1, 2016 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants