Skip to content

[Bioc-devel] [EXTERNAL]Re: Update R package I developed which has been released by bioconductor

1 message · Xiaowen Chen

#
Hi Shepherd,

I updated epihet in my github, then, I perform the following code:
git clone https://github.com/TheJacksonLaboratory/epihet.git
cd epihet
git remote add upstream git at git.bioconductor.org:packages/epihet.git
git remote -v

git fetch ?all

Fetching origin
Fetching upstream
The authenticity of host 'git.bioconductor.org (34.192.48.227)' can't be established.
RSA key fingerprint is 8b:f5:32:b4:a1:bb:94:d2:a3:8c:1a:35:90:98:f6:4e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.bioconductor.org,34.192.48.227' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
error: Could not fetch upstream

I got the above error, could you give me some suggestion, I am not familiar git, I will appreciate it.

Thank you.
Best,
Xiaowen

From: "Shepherd, Lori" <Lori.Shepherd at RoswellPark.org>
Date: Monday, September 21, 2020 at 9:22 AM
To: Xiaowen Chen <Xiaowen.Chen at jax.org>, "bioc-devel at r-project.org" <bioc-devel at r-project.org>
Subject: [EXTERNAL]Re: Update R package I developed which has been released by bioconductor

Bioconductor would not have your package on github.  Bioconductor has your repository in a git server.   If you already have a clone of your github repository you could follow the instructions here to add the remote to the Bioconductor repository you referenced here:
http://bioconductor.org/developers/how-to/git/sync-existing-repositories/

so :
git clone  <Your github repo>
cd epihet
<follow the instructions on the link above>

Make sure you do the
git fetch --all
git pull upstream master before making any changes!! This will make sure you get the release version bumps the core team performed and that everything is up-to-date with our version of your repository at git.bioconductor.org

Once you add the remote upstream if you do git remote -v
origin should point to your github
upstream should point to Bioconductor
It would be something similar to

origin https://github.com/<Your<https://github.com/%3cYour> github> .git (fetch)
origin https://github.com/<Your<https://github.com/%3cYour> github>.git (push)
upstream git at git.bioconductor.org:packages/epihet (fetch)
upstream git at git.bioconductor.org:packages/epihet (push)


So when you push changes:

git push origin master
would update YOUR github
it is saying git push  to the origin which is your github on the master branch

To update on Bioconductor
git push upstream master
it is saying git push changes to the upstream with is the bioconductor remote master branch (devel)

Make sure the version number has a version bump!  Our version is at 1.5.0  so you would have to bump the z of version x.y.z for it to register on Bioconductor (>=  1.5.1  )

Hope that helps clarify.



Lori Shepherd

Bioconductor Core Team

Roswell Park Comprehensive Cancer Center

Department of Biostatistics & Bioinformatics

Elm & Carlton Streets

Buffalo, New York 14263