Skip to content

Fix deploy-posit workflow failure caused by renv lockfile drift during manifest generation - #33

Merged
Juan-AV merged 3 commits into
mainfrom
copilot/fix-deploy-posit-job-another-one
May 22, 2026
Merged

Fix deploy-posit workflow failure caused by renv lockfile drift during manifest generation#33
Juan-AV merged 3 commits into
mainfrom
copilot/fix-deploy-posit-job-another-one

Conversation

Copilot AI commented May 22, 2026

Copy link
Copy Markdown
Contributor

The deploy-posit GitHub Actions job failed while generating manifest.json because rsconnect::writeManifest() detected an out-of-sync renv library vs lockfile state in CI. This PR updates the deploy workflow to synchronize the lockfile immediately before manifest creation.

  • Workflow fix (.github/workflows/deployment.yaml)

    • In the Create manifest.json step, added a lockfile sync between restore and manifest generation.
    • This ensures rsconnect sees a consistent renv state after dependency repair/update operations in CI.
  • Deployment behavior

    • Manifest creation now runs against a synchronized dependency graph, avoiding parseRenvDependencies() failure in deploy-posit.
renv::restore(prompt = FALSE, clean = TRUE)
renv::snapshot(prompt = FALSE, type = "all")
rsconnect::writeManifest()

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy-posit Fix deploy-posit workflow failure caused by renv lockfile drift during manifest generation May 22, 2026
Copilot AI requested a review from Juan-AV May 22, 2026 14:29
Removed the 'type' argument from renv::snapshot call.
@Juan-AV
Juan-AV marked this pull request as ready for review May 22, 2026 14:40
@Juan-AV
Juan-AV merged commit f172cf4 into main May 22, 2026
8 checks passed
@rh-bayer
rh-bayer deleted the copilot/fix-deploy-posit-job-another-one branch July 1, 2026 14:55
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

Successfully merging this pull request may close these issues.

2 participants