-
Notifications
You must be signed in to change notification settings - Fork 30
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
doctr not working with forks #342
Comments
It should print one of these messages indicating why it thinks it shouldn't push: Lines 571 to 602 in 0f19ff7
|
The exception is if you are using |
OK, I see My repo is a fork, but that's because I forked my website template from elsewhere a while ago. How can I override this? |
That's curious if it used to work on the same repo. Travis doesn't allow secure environment variables on builds from forked repos (unless things have changed). You may need to delete the repo and recreate it as a non-forked repo. But again that's curious if it used to work. If that's the case we should figure out what is going on. |
Yeah, it used to work fine, and I haven't changed anything. I hadn't made any changes in a few weeks, that's all. |
OK, I'm guessing the last build was before the most recent release of doctr. The change to not push on forks was new https://drdoctr.github.io/changelog.html, #332. I guess the logic isn't correct, or maybe Travis changed something. I had thought secure environment variables didn't work at all on forks, but I guess that isn't the case. Maybe we should only not push on a fork if the environment variable isn't there. |
If you need a workaround you can manually install doctr 1.7.4. |
Fix started at #343. I still need to fix the tests and do some manual testing. If you can check if that branch works on your repo that would help. |
Can I get Travis to use that one somehow, or should I just try locally? |
It won't work locally. You can install it on Travis using |
@asmeurer thanks—I actually figured that out after commenting here... build is in progress. So, I tried using that fork, but what's happening is weird... I see this message The full log is at https://gist.github.com/kyleniemeyer/0da4ea0d3f175c7401ca9f5f53a4dd31 |
Though it does look like it's successfully pushing the generated content. No idea. |
That happens if you run Travis on the GitHub pages branch itself ( |
I didn’t think I was- I use the “source” branch for the source files. But maybe I don’t have it configured completely right.
… On Apr 5, 2019, at 5:33 PM, Aaron Meurer ***@***.***> wrote:
That happens if you run Travis on the GitHub pages branch itself (gh-pages for most repos, master for *.github.io repos). That's because doctr pushes up to that branch, so otherwise it would get caught in an infinite build loop.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is this close to being resolved? I've been using I have a side project that uses several open-source projects I develop and thought it'd be cool to showcase the project in a doctr deploy --force --built-docs ./docs/_build/html .
The project is: https://github.com/OpenGeoVis/GeothermalDesignChallenge |
I do intend to fix this issue. It requires some manual testing to get any fix like this, which is why I've been a bit slow. I'll try to get to it this week. However, this sounds like a separate issue from what you are having. doctr was never designed to be run locally. We could probably make it work, but it would require some changes. |
How big of changes? |
I've honestly never thought of doing it, so I'm not sure. I'd have to take a look to see. Feel free to open an issue for it. |
I opened #345 about it. |
Although I haven't changed anything except to add some new files, I'm now getting a
Don't have permission to push. Not trying.
message in Travis, which seems to prevent pushing the generated files back to the repo for GitHub Pages to pick up.Looking at a recent successful build, it looks like that time it did a
git pull
thengit push
, neither of which is happening now.Any ideas?
The text was updated successfully, but these errors were encountered: