Skip to content
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

Error when pushing tags #279

Closed
ethanwhite opened this issue Jan 3, 2019 · 4 comments
Closed

Error when pushing tags #279

ethanwhite opened this issue Jan 3, 2019 · 4 comments

Comments

@ethanwhite
Copy link
Member

archive.R is currently erroring due to a failure by git2r to push the tags to the repo. This has the cascading consequence of preventing a new release and archiving to Zenodo. Error:

Error in git2r::push(repo, name = "deploy", refspec = paste("refs/tags/",  : 
  Error in 'git2r_push': object not found - no match for id (3a171428923f3eef21558ff18a2470f14d003392)

Our current usage follows ropensci/git2r#265, so it's not clear if git2r changed or if something else in the transition to archive.R broke something.

@ethanwhite ethanwhite changed the title git2r no longer pushing tags successfully Permission error when pushing tags Jan 3, 2019
@ethanwhite
Copy link
Member Author

ethanwhite commented Jan 3, 2019

The good/bad news is that this is working properly in https://github.com/weecology/livedat using identical code. Possible differences that could result in different behavior:

  1. Different cached versions of git2r for different Travis builds - Nope. Flushed both, results didn't change for either repo.
  2. Libraries are loaded in livedat rather than accessed with :: as they are in PortalData - Nope. Loaded them in PortalData with no effect.
  3. Some difference in the setup connecting Travis and GitHub. GitHub Apps didn't exist when we started so the process of connecting was different.

@ethanwhite
Copy link
Member Author

This warning is currently showing up in livedat after flushing the package cache:

Unable to find the libgit2 library on this system. Building 'git2r'
   using the bundled source of the libgit2 library.

But livedat runs successfully even after flushing the cache.

ethanwhite added a commit that referenced this issue Jan 3, 2019
This shouldn't make any difference since the functions are accessed using
:: namespacing, but this is a difference between the `livedat` repo and
the `PortalData` repo so this is an attempt to address #279.
@ethanwhite
Copy link
Member Author

And... I can't migrate this repo to the new Travis system because it's on the old Travis system and the ability to migrate has been pushed back by ~9 months already...

@ethanwhite ethanwhite changed the title Permission error when pushing tags Error when pushing tags Jan 3, 2019
ethanwhite added a commit that referenced this issue Jan 3, 2019
This was the original method that worked. See if going back to it can
address #279.
ethanwhite added a commit that referenced this issue Jan 3, 2019
This was the original method that worked. See if going back to it can
address #279.
@ethanwhite
Copy link
Member Author

Fixed in eeba493 by running the git push from the command line using system. With that the build, at least for master is now fixed and producing archived data on Zenodo again.

ethanwhite added a commit to ethanwhite/PortalData that referenced this issue Jan 11, 2019
For some reason pushing on travis through git2r is failing idiosyncratically.
See also: weecology#279
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

No branches or pull requests

1 participant