Skip to content

Package not installing on Mac but works on Linux #25

@jamesmbaazam

Description

@jamesmbaazam

@Karim-Mane First reported this on Slack, so I tried it on both MacOS and Linux. The former error'd but the latter worked.

Here's the error

> pak::pkg_install("epiverse-trace/epiversetheme")
                                                                           
→ Will install 1 package.The package (0 B) is cached.
+ epiversetheme   0.1.0 👷🏽‍♀️🔧 (GitHub: 376dacc)
ℹ No downloads are needed, 1 pkg is cachedBuilding epiversetheme 0.1.0Failed to build epiversetheme 0.1.0 (2.2s)                             
Error:                                                                   
! error in pak subprocess
Caused by error in `stop_task_build(state, worker)`:
! Failed to build source package epiversetheme.
Full installation output:
* installing *source* packageepiversetheme...
** this is packageepiversethemeversion0.1.0staged installation is only possible with locking
** using non-staged installation
sed: 1: "inst/pkgdown/_pkgdown.yml": command i expects \ followed by text
ERROR: configuration failed for packageepiversetheme* removing/private/var/folders/vr/dn4r1_zj417drd1zr9301trw0000gp/T/RtmpvP9TBj/pkg-lib5c511e4c6dda/epiversethemeType .Last.error to see the more details.

From my digging around, it can be traced to this line

sed -i "s/{{ version }}/$VERSION/g" inst/pkgdown/_pkgdown.yml
, which was introduced in the following commit c49ba5a.

It doesn't work for Mac because of the varied use of sed on both operating systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions