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

No aws deploy; hotfix for renv #343

Merged
merged 10 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
^docs/*$
^testthat-problems.rds$
^testthat.Rout.fail$
^renv/sandbox$

2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
if: runner.os != 'Windows'
run: |
renv::init()
system('rm -rf renv .Rprofile')
system('rm -rf renv.lock renv .Rprofile')
system('git clean -fd -e .github')
system('git restore .')
shell: Rscript {0}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ inst/doc
docs/
*.fail
testthat-problems.*
renv/sandbox/*

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: sandpaper
Title: Create and Curate Carpentries Lessons
Version: 0.10.1
Version: 0.10.2
Authors@R: c(
person(given = "Zhian N.",
family = "Kamvar",
Expand Down
15 changes: 15 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# sandpaper 0.10.2

BUG FIX
-------

* The default `.gitignore` now has `renv/sandbox` to avoid a sandbox directory
from being tracked by git. (see https://github.com/rstudio/renv/issues/1088)

CONTINUOUS INTEGRATION
----------------------

* The `deploy-aws.yaml` workflow has been removed as plans for its use is
relegated to the beta stage of the workbench.


# sandpaper 0.10.1

NEW FEATURES
Expand Down
2 changes: 2 additions & 0 deletions inst/templates/gitignore-template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ docs/
# translation temp files
po/*~

# renv sandbox
renv/sandbox
10 changes: 0 additions & 10 deletions inst/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,6 @@ the `renv.lock` file, respectively. If there is a problem with the cache,
manual invaliation is necessary and can be done by setting the `CACHE_VERSION`
secret to the current date.

### Deploy to AWS (deploy-aws.yaml)

If you have an AWS bucket that is set up to deploy the site from a folder, this
workflow will deploy the site to that folder after `01 Build and Deploy` runs.
It can also be triggered manually.

Note: for this to work, you must have the `AWS_S3_BUCKET`, `AWS_ACCESS_KEY_ID`,
and `AWS_SECRET_ACCESS_KEY` in your repository secrets. If any of these are
missing, the workflow will not run.

## Updates

### Setup Information
Expand Down
60 changes: 0 additions & 60 deletions inst/workflows/deploy-aws.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions tests/testthat/_snaps/create_lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
.Renviron
docs/
po/*~
renv/sandbox

# Destruction of the .gitignore file renders the lesson incorrect [ansi]

Expand Down Expand Up @@ -53,6 +54,7 @@
.Renviron
docs/
po/*~
renv/sandbox

# Destruction of the .gitignore file renders the lesson incorrect [unicode]

Expand Down Expand Up @@ -81,6 +83,7 @@
.Renviron
docs/
po/*~
renv/sandbox

# Destruction of the .gitignore file renders the lesson incorrect [fancy]

Expand Down Expand Up @@ -109,4 +112,5 @@
.Renviron
docs/
po/*~
renv/sandbox

8 changes: 6 additions & 2 deletions tests/testthat/test-manage_deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ test_that("manage_deps() will create a renv folder", {
skip_on_cran()
skip_on_os("windows")
rnv <- fs::path(lsn, "renv")
fs::file_move(rnv, fs::path(lsn, "vner"))
# need to move renv folder outside of the lesson or it will detect the
# suggested packages within the package and chaos will ensue
tmp <- withr::local_tempfile()
fs::dir_create(tmp)
fs::file_move(rnv, tmp)
withr::defer({
fs::dir_delete(rnv)
fs::file_move(fs::path(lsn, "vner"), rnv)
fs::file_move(fs::path(tmp, "renv"), rnv)
})
expect_false(fs::dir_exists(rnv))

Expand Down