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

Change from dependencies to hooks #75

Open
xmnlab opened this issue Dec 24, 2023 · 0 comments
Open

Change from dependencies to hooks #75

xmnlab opened this issue Dec 24, 2023 · 0 comments
Labels
psf-grant-proposal Issues used for a PSF grant proposal size:large >16h

Comments

@xmnlab
Copy link
Member

xmnlab commented Dec 24, 2023

Currently we use the attribute dependencies to define dependencies among targets.

Although it works fine, but it is just a pre-run (setup) hook, and we would need to add support for post-run (teardown) hook as well.

Example:

version: 1.0
env-file: .env
groups:
  main:
    targets:
      target1:
        help: target1
        run: echo "target 1"
      target2:
        help: target2
        run: echo "target 2"

  build:
    targets:
      clean:
        help: target clean
        hooks:
          pre-run: 
            - target: main.target1
          post-run:
            - target: main.target2
        run: echo "target clean"
@xmnlab xmnlab added psf-grant-proposal Issues used for a PSF grant proposal size:large >16h labels Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
psf-grant-proposal Issues used for a PSF grant proposal size:large >16h
Projects
None yet
Development

No branches or pull requests

1 participant