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

refactor!: add maru=true variable and refactoring #97

Merged
merged 42 commits into from
May 22, 2024

Conversation

ericwyles
Copy link
Contributor

@ericwyles ericwyles commented May 22, 2024

Description

This PR adds a MARU=true variable to running tasks and includes some refactoring / rebranding.

The following ⚠️ breaking changes are included in this PR:

  • config.EnvPrefix has been changed from the variable run to the constant MARU now and is no longer modifiable by applications vendoring in the runner. This means any variable replacements that previously used <EnvPrefix>_<VariableName> will only work for MARU_<VariableName> now.
    • The function config.AddExtraEnv(key string, value string) has been added to allow applications vendoring maru to add arbitrary environment variables since the EnvPrefix can no longer be modified.
  • The configuration search path $HOME/.run has been replaced with $HOME/.maru
  • The configuration file name has been changed from run-config to maru-config
  • Templating is no longer being performed on 'cmd' values and is being left to the shell to expand environment variables.

Related Issue

Fixes #78

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@ericwyles ericwyles changed the title Maru env var and refactor refactor: Add MARU=true variable and refactoring May 22, 2024
@ericwyles ericwyles added breaking-change 💔 This introduces a breaking change documentation Improvements or additions to documentation enhancement ✨ New feature or request labels May 22, 2024
@ericwyles ericwyles changed the title refactor: Add MARU=true variable and refactoring fix: Add MARU=true variable and refactoring May 22, 2024
@ericwyles ericwyles changed the title fix: Add MARU=true variable and refactoring refactor: add maru=true variable and refactoring May 22, 2024
@ericwyles ericwyles marked this pull request as ready for review May 22, 2024 20:57
@ericwyles ericwyles requested a review from a team as a code owner May 22, 2024 20:57
src/pkg/runner/actions.go Outdated Show resolved Hide resolved
src/pkg/runner/actions.go Outdated Show resolved Hide resolved
src/config/config.go Outdated Show resolved Hide resolved
src/test/tasks/tasks.yaml Show resolved Hide resolved
src/config/config.go Outdated Show resolved Hide resolved
src/pkg/runner/actions.go Outdated Show resolved Hide resolved
src/pkg/utils/template.go Show resolved Hide resolved
src/pkg/runner/actions_test.go Outdated Show resolved Hide resolved
src/pkg/runner/actions_test.go Outdated Show resolved Hide resolved
src/pkg/runner/actions_test.go Outdated Show resolved Hide resolved
src/pkg/utils/tempate_test.go Outdated Show resolved Hide resolved
src/pkg/runner/actions_test.go Outdated Show resolved Hide resolved
src/pkg/runner/actions_test.go Outdated Show resolved Hide resolved
@Racer159 Racer159 changed the title refactor: add maru=true variable and refactoring refactor!: add maru=true variable and refactoring May 22, 2024
@ericwyles ericwyles merged commit 5cf570f into main May 22, 2024
10 checks passed
@ericwyles ericwyles deleted the maru-env-var-and-refactor branch May 22, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change 💔 This introduces a breaking change documentation Improvements or additions to documentation enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identifier for when commands are run inside of a task
2 participants