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

is fork_upstream_is_not_origin_parent a sub-optimal configuration? #1

Open
avallecam opened this issue Oct 27, 2023 · 4 comments
Open
Labels
invalid This doesn't seem right

Comments

@avallecam
Copy link
Member

avallecam commented Oct 27, 2023

NOTE: This does not affect building the lesson.

While trying to create a support.md file, I got this error message:

> usethis::use_tidy_support()
# Error in `stop_bad_github_remote_config()`:
# ! Unsupported GitHub remote configuration: 'fork_upstream_is_not_origin_parent'
# • Host = 'https://github.com'
# • origin = 'epiverse-trace/git-rstudio-basics' (can push) = fork of 'swcarpentry/git-novice'
# • upstream = 'epiverse-trace/git-rstudio-basics' (can push) = fork of 'swcarpentry/git-novice'
# • The 'origin' GitHub remote is a fork, but its parent is not configured as the 'upstream' remote.
# 
# Read more about the GitHub remote configurations that usethis supports at:
# 'https://happygitwithr.com/common-remote-setups.html'
# Run `rlang::last_trace()` to see where the error occurred.

> rlang::last_trace()
# <error/usethis_error_bad_github_remote_config>
# Error in `stop_bad_github_remote_config()`:
# ! Unsupported GitHub remote configuration: 'fork_upstream_is_not_origin_parent'
# • Host = 'https://github.com'
# • origin = 'epiverse-trace/git-rstudio-basics' (can push) = fork of 'swcarpentry/git-novice'
# • upstream = 'epiverse-trace/git-rstudio-basics' (can push) = fork of 'swcarpentry/git-novice'
# • The 'origin' GitHub remote is a fork, but its parent is not configured as the 'upstream' remote.
# 
# Read more about the GitHub remote configurations that usethis supports at:
# 'https://happygitwithr.com/common-remote-setups.html'
# ---
# Backtrace:
#
#  1. └─usethis::use_tidy_support()
#  2.   └─usethis:::target_repo_spec(ask = FALSE)
#  3.     └─usethis:::target_repo(role = match.arg(role), ask = ask)
#  4.       └─usethis:::check_for_bad_config(cfg)
#  5.         └─usethis:::stop_bad_github_remote_config(cfg)
# Run rlang::last_trace(drop = FALSE) to see 1 hidden frame.

Our intention is to create a derivative from the original.

For this situation, Is the type of fork called fork_upstream_is_not_origin_parent (1) a sub-optimal configuration (2)?

(1) https://rdrr.io/github/r-lib/usethis/src/R/utils-github.R
(1) https://happygitwithr.com/common-remote-setups#fork_upstream_is_not_origin_parent

@avallecam avallecam added the question Further information is requested label Oct 27, 2023
@avallecam
Copy link
Member Author

avallecam commented Oct 27, 2023

The PR automatically redirects to the parent repository. It is possible to change the recipient of the PR, but this may be problematic in the longterm.

image

@avallecam avallecam added the help wanted Extra attention is needed label Oct 27, 2023
@avallecam
Copy link
Member Author

Also, should we follow these actions to remove this message? https://gist.github.com/seLain/8bdf12c7196f3fccafdf067dec2696b2

image

@avallecam avallecam removed help wanted Extra attention is needed question Further information is requested labels Feb 27, 2024
@avallecam
Copy link
Member Author

this will wait for updates any update in https://github.com/orgs/community/discussions/11729

@avallecam avallecam added the invalid This doesn't seem right label Feb 27, 2024
@avallecam
Copy link
Member Author

avallecam commented Apr 16, 2024

this will wait for updates any update in https://github.com/orgs/community/discussions/11729

one solution suggested is using gh pr create ...

gh pr create --repo <[HOST/]OWNER/REPO>

possibly?

gh pr create --repo epiverse-trace/git-rstudio-basics

Using gh CLI https://github.com/cli/cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant