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

Fix upgrading packages from local sources which reference remotes #94

Open
richfitz opened this issue Jun 10, 2021 · 0 comments
Open

Fix upgrading packages from local sources which reference remotes #94

richfitz opened this issue Jun 10, 2021 · 0 comments

Comments

@richfitz
Copy link
Member

richfitz commented Jun 10, 2021

With package spimalot, built as a tgz source package, which references several other packages via remotes, but which are installed from drat

> cfg <- didehpc::didehpc_config(cluster = "big",
+                                template = '32Core',
+                                cores = 32)
> obj <- didehpc::queue_didehpc(ctx, config = cfg, provision = "upgrade")
Loading context 54afdd1a4f7ea3df77344e01709aa29e
[ context   ]  54afdd1a4f7ea3df77344e01709aa29e
[ library   ]  sircovid, lubridate, coda, tidyr, viridisLite, orderly, vaultr, readxl, abind, here, mcstate, dust, spimalot
[ namespace ]
[ source    ]
Running installation script on cluster
  ,:\      /:.                                                                      
 //  \_()_/  \\
||   |    |   ||  CONAN THE LIBRARIAN
||   |    |   ||  Library:   Z:\Pablo\ncov-outputs-2\contexts\lib\windows\4.0
||   |____|   ||  Bootstrap: T:\conan\bootstrap\4.0
 \\  / || \  //   Cache:     Z:\Pablo\ncov-outputs-2\contexts\conan\cache/pkg
  `:/  ||  \;'    Policy:    upgrade
       ||         Repos:
       ||           * https://ncov-ic.github.io/drat
       XX           * https://cloud.r-project.org
       XX           * https://mrc-ide.github.io/didehpc-pkgs
       XX         Packages:
       XX           * context
       OO           * sircovid
       `'           * lubridate
                    * coda
                    * tidyr
                    * viridisLite
                    * orderly
                    * vaultr
                    * readxl
                    * abind
                    * here
                    * mcstate
                    * dust
                    * spimalot
                    * local::Z:/Pablo/spimalot/pkgs/spimalot_0.1.9.tar.gz

 

                                                                                    
! Using bundled GitHub PAT. Please add your own PAT using `gitcreds::gitcreds_set()`.
v Updated metadata database: 4.05 MB in 4 files.                                    

 

i Updating metadata database
v Updating metadata database ... done                                               

 

Error: Cannot install packages:                                                     
* local::Z:/Pablo/spimalot/pkgs/spimalot_0.1.9.tar.gz:
  * Can't install dependency mrc-ide/dust
  * Can't install dependency mrc-ide/mcstate
  * Can't install dependency mrc-ide/sircovid
* mrc-ide/dust: Conflicts with dust
* mrc-ide/sircovid: Conflicts with sircovid
* mrc-ide/mcstate: Conflicts with mcstate
Execution halted
Error in conan::conan_watch(function() client$status_job(dide_id, cluster),  :      
  Installation failed

or, after creation without provisioning:

> obj$install_packages(spimalot_path)
Running installation script on cluster
  ,:\      /:.                                                                      
 //  \_()_/  \\
||   |    |   ||  CONAN THE LIBRARIAN
||   |    |   ||  Library:   Z:\Pablo\ncov-outputs-2\contexts\lib\windows\4.0
||   |____|   ||  Bootstrap: T:\conan\bootstrap\4.0
 \\  / || \  //   Cache:     Z:\Pablo\ncov-outputs-2\contexts\conan\cache/pkg
  `:/  ||  \;'    Policy:    lazy
       ||         Repos:
       ||           * https://cloud.r-project.org
       XX         Packages:
       XX           * Z:/Pablo/spimalot/pkgs/spimalot_0.1.9.tar.gz
       XX
       XX
       OO
       `'

 

Error in get_remote_types(refs) :                                                   
  Can't parse remotes: Z:/Pablo/spimalot/pkgs/spimalot_0.1.9.tar.gz
Calls: conan_install ... is_character -> filter_packages -> <Anonymous> -> get_remote_types
Execution halted
Error in conan::conan_watch(function() client$status_job(dide_id, cluster),  :      
  Installation failed
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