Code Monkey home page Code Monkey logo

Comments (6)

maver1ck avatar maver1ck commented on May 13, 2024

I tried to add update hook.

https://github.com/maver1ck/helm-diff

Result:

maverick@CARBON:~$ helm plugin install https://github.com/maver1ck/helm-diff/
Downloading https://github.com/databus23/helm-diff/releases/download/v2.9.0%2B2/helm-diff-linux.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   609    0   609    0     0    412      0 --:--:--  0:00:01 --:--:--   412
100 4776k  100 4776k    0     0   425k      0  0:00:11  0:00:11 --:--:--  653k
Preparing to install into /home/maverick/.helm/plugins/helm-diff
helm-diff installed into /home/maverick/.helm/plugins/helm-diff/helm-diff

***

maverick@CARBON:~$ helm plugin update diff --debug
[debug] loading installed plugins from /home/maverick/.helm/plugins
Error: Failed to update plugin diff, got error (plugin does not exist)

Also output from strace

[pid  2227] newfstatat(AT_FDCWD, "/home/maverick/.helm/plugins/helm-diff.git", 0xc4209cc788, 0) = -1 ENOENT (No such file or directory)
[pid  2227] write(2, "Error: Failed to update plugin d"..., 71Error: Failed to update plugin diff, got error (plugin does not exist)

from helm-diff.

maver1ck avatar maver1ck commented on May 13, 2024

OK.
Found the reason of this problem.
PR is ready.

from helm-diff.

cmeury avatar cmeury commented on May 13, 2024

@maver1ck Looks like it tries to stat the wrong path. In your strace snippet it says /home/maverick/.helm/plugins/helm-diff.git while the actual location seems to be the folder /home/maverick/.helm/plugins/helm-diff.

Looking at the relevant code sections, it seems that install does path.Dir(i.Path()), while update does i.Path().

But I could not easily determine what goes wrong -- maybe it helps to look at the script used by a different plugin (that is used in its plugin update hook): https://github.com/nouney/helm-gcs/blob/master/scripts/install.sh

from helm-diff.

cmeury avatar cmeury commented on May 13, 2024

Ohh, good to hear :D I think when I opened the file in your branch you already fixed it so I never saw the erroneous "helm" :)

from helm-diff.

maver1ck avatar maver1ck commented on May 13, 2024

I was installing from github/maver1ck/helm-diff and should from helm-diff.git.
I added bug report to helm helm/helm#4240 (I think this is kind of bug)

from helm-diff.

stale avatar stale commented on May 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from helm-diff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.