Skip to content

Add install/uninstall/activate/deactivate hooks to pub #1192

Closed
@DartBot

Description

@DartBot

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="96" height="96"hspace="10"> Issue by sethladd
Originally opened as dart-lang/sdk#21584


To repro:

pub global activate stagehand
mkdir empty
cd empty
stagehand webapp
  (say Y to analytics)
pub global deactivate stagehand

cat ~/.stagehand

Expected: ~/.stagehand file is deleted (or, a notice is sent to stagehand that the package is getting deleted)

Actual: apparently (?) no signal on uninstall

Activity

DartBot

DartBot commented on Jun 5, 2015

@DartBot
Author

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd


If there's a lifecycle callback that pub is sending, and that stagehand is not listening to, please let us know and then close this issue. :) Thanks for taking a look!

DartBot

DartBot commented on Jun 5, 2015

@DartBot
Author

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


Pub doesn't currently support any package hooks of any kind, but we may in the future. I'm retargeting this issue to that.


Removed Priority-Unassigned, Pub-Global labels.
Added Priority-Low label.
Changed the title to: "Add install/uninstall/activate/deactivate hooks to pub".

DartBot

DartBot commented on Jun 5, 2015

@DartBot
Author

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd


sgtm

matanlurey

matanlurey commented on Mar 24, 2018

@matanlurey
Contributor

We are no longer supporting transformers or pub serve/build going forward (this tooling has moved elsewhere into the https://github.com/dart-lang/build repository and https://github.com/dart-lang/webdev CLI) so a fix for this is not planned.

We'll be updating the tooling section of the Dart website in the coming weeks with more formal documentation on how to get started.

added
P3A lower priority bug or feature request
and removed on Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestclosed-not-plannedClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @matanlurey@sigurdm@DartBot

        Issue actions

          Add install/uninstall/activate/deactivate hooks to pub · Issue #1192 · dart-lang/pub