question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Non-npm] Custom plugin not found

See original GitHub issue

Describe the bug

I created a custom plugin but when running in CI, auto never finds my plugin

ps: When I tested local, point to the directory I could execute the plugin. But when tried using the global approach doesn’t work

To Reproduce

I put a repository here: https://github.com/angeliski/gem-auto-release

First I tried to use the global approach here: https://github.com/angeliski/gem-auto-release/pull/8 The result: https://app.circleci.com/pipelines/github/angeliski/gem-auto-release/45/workflows/ba986523-811a-4db0-b5c4-6c08054bc12e/jobs/121

⚠  warning   Could not find plugin: auto-plugin-gem-canary-release

And after I tried to use the clone approach here: https://github.com/angeliski/gem-auto-release/pull/9 The result: https://app.circleci.com/pipelines/github/angeliski/gem-auto-release/46/workflows/78f6695d-0af9-4e2f-96b9-dcb5f0e57a2a/jobs/124

⚠  warning   Could not find plugin: ../plugins/auto-plugin-gem-canary-release

Expected behavior The plugin needs to be founded and execute the canary command. Local Environment information:


Environment Information:

"auto" version: v10.22.0
"git"  version: v2.31.0
"node" version: v12.18.1

Project Information:

✔ Repository:      angeliski/gem-auto-release
✔ Author Name:     Rogerio Angeliski
✔ Author Email:    rogerio.angeliski@resultadosdigitais.com.br
✔ Current Version: v0.2.0
✔ Latest Release:  v0.2.0

✔ Labels configured on GitHub project 

GitHub Token Information:

✔ Token:            [Token starting with 02e4]
✔ Repo Permission:  admin
✔ User:             angeliski
✔ API:              
✔ Enabled Scopes:   admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages
✔ Rate Limit:       4641/5000

Found the following plugins in your .autorc:

- gem (/snapshot/auto/plugins/gem)
- all-contributors (/snapshot/auto/plugins/all-contributors)
- conventional-commits (/snapshot/auto/plugins/conventional-commits)
- first-time-contributor (/snapshot/auto/plugins/first-time-contributor)
- released (/snapshot/auto/plugins/released)
- ../auto-plugin-gem-canary-release (../auto-plugin-gem-canary-release)

Found the following plugins bundled with your binary:

- all-contributors (/snapshot/auto/plugins/all-contributors)
- brew (/snapshot/auto/plugins/brew)
- chrome (/snapshot/auto/plugins/chrome)
- cocoapods (/snapshot/auto/plugins/cocoapods)
- conventional-commits (/snapshot/auto/plugins/conventional-commits)
- crates (/snapshot/auto/plugins/crates)
- docker (/snapshot/auto/plugins/docker)
- exec (/snapshot/auto/plugins/exec)
- first-time-contributor (/snapshot/auto/plugins/first-time-contributor)
- gem (/snapshot/auto/plugins/gem)
- gh-pages (/snapshot/auto/plugins/gh-pages)
- git-tag (/snapshot/auto/plugins/git-tag)
- gradle (/snapshot/auto/plugins/gradle)
- jira (/snapshot/auto/plugins/jira)
- magic-zero (/snapshot/auto/plugins/magic-zero)
- maven (/snapshot/auto/plugins/maven)
- microsoft-teams (/snapshot/auto/plugins/microsoft-teams)
- npm (/snapshot/auto/plugins/npm)
- omit-commits (/snapshot/auto/plugins/omit-commits)
- omit-release-notes (/snapshot/auto/plugins/omit-release-notes)
- pr-body-labels (/snapshot/auto/plugins/pr-body-labels)
- released (/snapshot/auto/plugins/released)
- slack (/snapshot/auto/plugins/slack)
- twitter (/snapshot/auto/plugins/twitter)
- upload-assets (/snapshot/auto/plugins/upload-assets)
- vscode (/snapshot/auto/plugins/vscode)

●  note      There might be other plugins available as files on your machine. This flag can only list plugins from your .autorc or plugins managed with "npm".


Additional context

I am using the Non-npm approach.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
angeliskicommented, Mar 26, 2021

Hey @hipstersmoothie My package is published here: https://www.npmjs.com/package/auto-plugin-gem-canary-release So I didn’t know why doesn’t work. 😢

About the contribution to the gem plugin, I think maybe that makes sense to the flow, but I didn’t make that in the official plugin because I use a custom gem for some features, so maybe that is a bad requirement for the official plugin. But I will try to create a better approach for that and make a PR for the main repository 😃

0reactions
angeliskicommented, Mar 30, 2021

@hipstersmoothie The global approach works fine, but how about the folder way? In some cases we prefer to use a repository over a published package, could you look at that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom maven plugin not found - Stack Overflow
Custom maven plugin not found ... Then I run c:\workspace\foo\bar\mvn clean install to install the mojo. ... have you check root/parent pom info ......
Read more >
Nopcommerce not finding your custom plugin
When i tried to follow the documentation tutorial for creating a custom plugin/widget i never got it to show as a local plugin....
Read more >
Non-npm Usage - Intuit
Write your own custom plugins and store them in here; Copy a plugin from the internet .autorc : { "plugins": [ ...
Read more >
Migrate custom source plugin not found - Drupal Answers
I have a fairly simple D6->D8 migration, and I need a custom source plugin for one of my node migrations. As far as...
Read more >
definitelytyped github
Type definitions for non-npm package Node. Развертывание через Wsus Package Publisher - posted in Dr WSUS Package Publisher ist Hi all! I installed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found