Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Version 2.2.0 is not supported error #166

Closed
ysomad opened this issue Oct 25, 2021 · 17 comments
Closed

Version 2.2.0 is not supported error #166

ysomad opened this issue Oct 25, 2021 · 17 comments
Labels
enhancement New feature or request

Comments

@ysomad
Copy link

ysomad commented Oct 25, 2021

Got Error: Version 2.2.0 is not supported. when setting GH actions job.

Logs:

Run asyncapi/github-action-for-generator@v1
  with:
    template: @asyncapi/[email protected]
    filepath: backend/docs/asyncapi.yml
    parameters: baseHref=/test-experiment/ sidebarOrganization=byTags
    output: generated-html
(node:2002) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Error: Version 2.2.0 is not supported.

GH actions configuration:

name: AsyncAPI documents processing

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  generate:
    runs-on: ubuntu-latest
    steps:
    
    - name: Checkout repo
      uses: actions/checkout@v2

    - name: Generating HTML from my AsyncAPI document
      uses: asyncapi/github-action-for-generator@v1
      with:
        template: '@asyncapi/[email protected]' # latest
        filepath: backend/docs/asyncapi.yml
        parameters: baseHref=/test-experiment/ sidebarOrganization=byTags
        output: generated-html
@ysomad ysomad added the enhancement New feature or request label Oct 25, 2021
@github-actions
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@ysomad ysomad closed this as completed Oct 25, 2021
@magicmatatjahu
Copy link
Member

@ysomad Hi! Did you use latest version of html-template?

@ysomad
Copy link
Author

ysomad commented Oct 25, 2021

Hi! Yes, I'm using 0.23.1

 - name: Generating HTML from my AsyncAPI document
      uses: asyncapi/github-action-for-generator@v1
      with:
        template: '@asyncapi/[email protected]' 
        filepath: backend/docs/asyncapi.yml
        parameters: baseHref=/test-experiment/ sidebarOrganization=byTags
        output: generated-html

@magicmatatjahu
Copy link
Member

So I guess that everything works as expected, because you closed issue, am I right?

@ysomad
Copy link
Author

ysomad commented Oct 25, 2021

So I guess that everything works as expected, because you closed issue, am I right?

I have incorrectly described the issue. Got confused, though I did not use the latest version of asyncapi/github-action-for-generator.

Still not working.

@ysomad ysomad changed the title AsyncAPI specification 2.2.0 support Version 2.2.0 is not supported error Oct 25, 2021
@ysomad ysomad reopened this Oct 25, 2021
@ysomad
Copy link
Author

ysomad commented Oct 25, 2021

So I guess that everything works as expected, because you closed issue, am I right?

Sorry If I confused you. Edited the issue and reopened it.

@magicmatatjahu
Copy link
Member

@ysomad No worries :) Very strange with that, because latest version of github action uses the latest generator and it uses latest parser which support latest AsyncAPI version. Could you try to specify latest version of action, but not as v1, but v1.0.49?

@ysomad
Copy link
Author

ysomad commented Oct 25, 2021

@ysomad No worries :) Very strange with that, because latest version of github action uses the latest generator and it uses latest parser which support latest AsyncAPI version. Could you try to specify latest version of action, but not as v1, but v1.0.49?

Still not working but different error.

GH actions configuration:

    - name: Generating HTML from my AsyncAPI document
      uses: asyncapi/[email protected]
      with:
        template: '@asyncapi/[email protected]' 
        filepath: backend/docs/asyncapi.yml
        parameters: baseHref=/test-experiment/ sidebarOrganization=byTags 
        output: generated-html

Logs:

Current runner version: '2.283.3'
Operating System
Virtual Environment
Virtual Environment Provisioner
GITHUB_TOKEN Permissions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v2' (SHA:1e204e9a9253d643386038d443f96446fa156a97)
Download action repository 'asyncapi/[email protected]' (SHA:8051b3f3295dd48deb7fde86ec91f9b67dcea5aa)
Error: Could not find file '/home/runner/work/_actions/_temp_77ab61d4-57b8-464e-a8d4-4588e144c619/_staging/asyncapi-github-action-for-generator-8051b3f/node_modules/.bin/semantic-release'.

@magicmatatjahu
Copy link
Member

I'm going to take a closer look because this is really weird.

@derberg
Copy link
Member

derberg commented Oct 25, 2021

omg, this GitHub Action will get me crazy 🤦🏼

@magicmatatjahu it is still related to the fact that I commit all the stuff to repo and then remove some of it......this issue was visible in last release and then was fixed......and is here again even though the file is here

I think I just need to admit the fact I cannot solve it with commit of node_modules to a repo and instead will have to go docker direction (something that was not possible at the time I worked on this action)

@magicmatatjahu
Copy link
Member

Maybe i don't understand something, but node_modules have been updated to the new generator and parser and they have been pushed then what exactly is the problem? Some node_modules that shouldn't be suddenly are (e.g. semantic-release)?

@ysomad
Copy link
Author

ysomad commented Oct 26, 2021

Hello! Any updates on this issue? @magicmatatjahu @derberg

@brunonunes
Copy link

Same error here

@ysomad
Copy link
Author

ysomad commented Nov 7, 2021

Same error here

use 1.0.48 version for now.

@derberg
Copy link
Member

derberg commented Nov 8, 2021

@ysomad @brunonunes @ysomad

sorry folks, we identified that the only way to solve this issue long term is to switch to totally different way of publishing this action - docker image way. It just requires time and we are at the moment super busy organising https://conference.asyncapi.com/ for the community. So if you want to speed up, we would need your support to contribute the solution.

Thanks in advance for your patience and help. And feel invited to the conference 😄

@derberg
Copy link
Member

derberg commented Nov 22, 2021

folks, fix is on its way,
we will use action as docker, so look into readme before you use new version

#182

@derberg
Copy link
Member

derberg commented Nov 22, 2021

We bumped this action to 2.0.0 and host its distro on docker -> https://hub.docker.com/repository/docker/asyncapi/github-action-for-generator/general

The only change for you is to just use it by the name from docker:

uses: docker://asyncapi/github-action-for-generator:2.0.0

@derberg derberg closed this as completed Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants