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

fix(deps): update module github.com/vladimirvivien/gexe to v0.4.1 #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 3, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/vladimirvivien/gexe v0.3.0 -> v0.4.1 age adoption passing confidence

Release Notes

vladimirvivien/gexe (github.com/vladimirvivien/gexe)

v0.4.1

Compare Source

What's Changed

New Contributors

Full Changelog: vladimirvivien/gexe@v0.4.0...v0.4.1

v0.4.0

Compare Source

This release did not introduce new functionalities, but rather implemented fixes and improvements that have been lingering for a while.

Release overview

  • Better support for setting Stdout/Stderr when working with exec package
  • Fixed out-of-order bug that would make exec.Proc.Resut() and exec.Proc.Out() calls return empty result from the process
  • Additional checked error propagation in API call chain in several packages
  • Enhancements to exec.CommandBuilder to fix piped commands constructs
  • Ability to set stdout/stderr for batch commands with exec.CommandBuilder
  • Further standardization of function and method signatures for packages http and fs
  • Enhancements to internal tests

API changes

Package exec changes

Previously, method Proc.Out() in package exec would automatically start a defined process (if not started) then return output of the process as a combined Stdout/Stderr streams. This behavior has been simplified:

  • The API user is responsible for starting the process prior to calling proc.Out()
  • Method Proc.Out() only returns the combined output stream if no other streams were set for the process
  • If other streams were set, an API user is responsible for accessing the configured output stream for process result.

Method proc.Result() still returns the combined output stream as string (by calling proc.Out()) if an output stream was not explicitly set.

See example here

Package vars changes

This release introduces subtle changes to how methods vars.Variables.Envs and vars.Variables.Vars work. Before this release, these methods accepted a single string with key=value pairs separated by spaces:

gexe.Vars(`msg0=hello msg1=world`).

In this release, however, the signatures for both Envs and Vars have been updated as variadic methods that accept zero or more string values. Each string parameter is not expected to provide a single key=value pair:

gexe.Envs(`GOOS="linux"`, `GOARCH=arm64`).Run(`go build .`)

Note that this change provides the flexibility of specifying variables with quoted values and supports spaces in the values.

Related PRs


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/github.com-vladimirvivien-gexe-0.x branch from 39c30a3 to cf5e556 Compare November 25, 2024 04:03
@renovate renovate bot changed the title fix(deps): update module github.com/vladimirvivien/gexe to v0.4.0 fix(deps): update module github.com/vladimirvivien/gexe to v0.4.1 Nov 25, 2024
@renovate renovate bot force-pushed the renovate/github.com-vladimirvivien-gexe-0.x branch from cf5e556 to 0cf7d47 Compare November 29, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants