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

RemoteRef not included for GitHub-installed packages #502

Closed
aronatkins opened this issue Sep 24, 2018 · 2 comments · Fixed by #506
Closed

RemoteRef not included for GitHub-installed packages #502

aronatkins opened this issue Sep 24, 2018 · 2 comments · Fixed by #506

Comments

@aronatkins
Copy link
Contributor

Compare the Github* fields to the Remote* fields; we populate GithubRef but not RemoteRef.

packrat/R/pkg.R

Lines 293 to 322 in cea6c23

if (!is.null(df$GithubRepo)) {
# It's GitHub!
return(structure(c(list(
name = name,
source = 'github',
version = ver,
gh_repo = as.character(df$GithubRepo),
gh_username = as.character(df$GithubUsername),
gh_ref = as.character(df$GithubRef),
gh_sha1 = as.character(df$GithubSHA1)),
c(gh_subdir = as.character(df$GithubSubdir)),
c(remote_host = as.character(df$RemoteHost)),
c(remote_repo = as.character(df$RemoteRepo)),
c(remote_username = as.character(df$RemoteUsername)),
c(remote_sha = as.character(df$RemoteSha))
), class = c('packageRecord', 'github')))
} else if (!is.null(df$RemoteType) && df$RemoteType == "bitbucket") {
# It's Bitbucket!
return(structure(c(list(
name = name,
source = 'bitbucket',
version = ver,
remote_repo = as.character(df$RemoteRepo),
remote_username = as.character(df$RemoteUsername),
remote_ref = as.character(df$RemoteRef),
remote_sha = as.character(df$RemoteSha)),
c(remote_host = as.character(df$RemoteHost)),
c(remote_subdir = as.character(df$RemoteSubdir))
), class = c('packageRecord', 'bitbucket')))
} else if (identical(as.character(df$Priority), 'base')) {

@kevinushey
Copy link
Contributor

@aronatkins what's the priority on this? In theory you should still be able to grab the ref from gh_ref even though we really should populate both fields in all cases.

@aronatkins
Copy link
Contributor Author

I don't think it's high, as folks expect GithubRef, but will want to keep it consistent if we ditch the Github specific prefixes.

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 a pull request may close this issue.

2 participants