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

plural-cli can't be setup from a GitHub action starting from v0.6.19 #413

Open
NicolasGuary opened this issue Jun 1, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@NicolasGuary
Copy link

Summary

Trying to run a GitHub action workflow to deploy to Plural.
I'm using the following block in my action :

    - name: Login to Plural
      uses: pluralsh/setup-plural@v0.1.5
      with:
        config: ${{ secrets.PLURAL_CONFIG }}
        vsn: 0.6.19

Everything works fine if I don't specify vsn which defaults to v0.5.18 or if I set vsn to 0.6.18

But starting from 0.6.19, setup-plural fails with the following error :

/usr/bin/chmod +x /opt/hostedtoolcache/plural/0.6.19/x64/plural
installed plural
wrote config file
/opt/hostedtoolcache/plural/0.6.19/x64/plural --help
/opt/hostedtoolcache/plural/0.6.19/x64/plural: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory
Error: The process '/opt/hostedtoolcache/plural/0.6.19/x64/plural' failed with exit code 1[27](https://github.com/beamysoftware/data-pipelines/actions/runs/5143998884/jobs/9259723647#step:7:28)

I believe a dependency might be missing.

Reproduction

Run the following GitHub action :

name: Plural CLI fail 

on:
  push:
    branches:
      - "<your_test_branch>"

jobs:
  failing_job:
    environment:
      name: <your_env>
      url: <url>
    runs-on: ubuntu-latest
    permissions:
      contents: 'read'
      id-token: 'write'
    steps:
    - uses: actions/checkout@v3

    - name: Login to Plural
      uses: pluralsh/setup-plural@v0.1.5
      with:
        config: ${{ secrets.PLURAL_CONFIG }}
        vsn: 0.6.19

If vsn is 0.6.19 or above it will fail with the error described above :

/opt/hostedtoolcache/plural/0.6.19/x64/plural: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Message from the maintainers:

Impacted by this bug? Give it a 👍. We factor engagement into prioritization.

@NicolasGuary NicolasGuary added the bug Something isn't working label Jun 1, 2023
@NicolasGuary NicolasGuary changed the title plural-cli can't be setup from a GitHub action starting from plural-cli can't be setup from a GitHub action starting from v0.6.19 Jun 1, 2023
@snikch
Copy link

snikch commented Jun 7, 2023

We also hit this issue. Tried to install the missing dep with

 - name: Install libwebkit2gtk
       run: sudo apt-get install libwebkit2gtk-4.0-dev

But then we'd get (plural:3109): Gtk-WARNING **: 23:39:19.569: cannot open display:

@floreks
Copy link
Member

floreks commented Jun 13, 2023

The latest releases now contain a new asset plural-cli_console_0.6.24_Linux_amd64.tar.gz that does not have the embedded UI and does not require any additional dependencies.

@NicolasGuary @snikch try using this one in your GH actions instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants