Closed mfansler closed 3 years ago
Hi!
I think that this is a case more for remotes::system_requirements
than biocthis
. However, like you mentioned, the solution might involve using apt-get
commands directly on your custom GHA workflow.
Best, Leo
Not sure this is the right place to file this, but I figured that others who use this feature might search here for a solution.
Context
I configured GitHub Actions with
biocthis::use_bioc_github_action()
on a prospective Bioconductor package I am working on. I had an example in a function's documentation that used theGenomicFeatures::makeTxDbFromUCSC()
method, which internally uses the RMariaDB package.Code
Because of the RMariaDB dependency, I included
DESCRIPTION
When running the Linux version of the GitHub action, the code
subsequently includes
libmysqlclient-dev
andmysql-server
.GitHub Action Fails
The GitHub Action fails to install the
mysql-server
dependency on the Linux image (see error in log).The specific complaint appears related to configuring
mysql-server
:Workaround
Avoid dependencies that require
mysql-server
. That may not be possible for some, but fortunately in my case I could write a different example that avoided the RMariaDB dependency.Discussion
I expect properly solving this would involve making the dependencies installation step more robust. That is, one can't simply rely on throwing them at
apt-get install -y
and expect them to work. However, this might involve a lot edge case handling (e.g., catching particular packages) which I don't think could be justified unless there was demand from end users.