Skip to content

New private repo option fails with 404 #591

@artur-sannikov

Description

@artur-sannikov

I can authenticate with

ssh -T git@github.com

I can also download the archive by following the URL in the error message.

Error: Request `curl::curl_fetch_disk()` failed:
HTTP response code said error [github.com]:
The requested URL returned error: 404
If it's a GitHub repo, check the url and commit.
Are these correct? If it's an archived CRAN package, check the name
of the package and the version number.
Failing repo: https://github.com/myorg/private_repo/archive/f18dd1d.tar.gz
Execution halted

My code

library(rix)
rix(
  project_path = ".",
  overwrite = TRUE,
  r_ver = "4.4.1",
  git_pkgs = list(
    package_name = "myPkg", # It's the same as in DESCRIPTION
    repo_url = "git@github.com:myorg/private_repo.git",
    commit = "f18dd1d", # Does not work even with full-length commit
    private = TRUE
  )
)

The rix version is the latest 0.18.2:

R version 4.5.2 (2025-10-31)
Platform: x86_64-pc-linux-gnu
Running under: NixOS 26.05 (Yarara)

Matrix products: default
BLAS/LAPACK: /nix/store/9rp469cmiys6a4ncgc6nhwvj8kb9a2q7-blas-3/lib/libblas.so.3;  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Tallinn
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rix_0.18.2

loaded via a namespace (and not attached):
[1] compiler_4.5.2   tools_4.5.2      curl_7.0.0       codetools_0.2-20
[5] jsonlite_2.0.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions