feat(ENG-21362): Environment Variables Store (#23930)

This commit is contained in:
Marko Vejnovic
2025-10-23 23:08:08 -07:00
committed by GitHub
parent d648547942
commit e76570f452
67 changed files with 886 additions and 388 deletions

View File

@@ -284,7 +284,7 @@ pub const PmVersionCommand = struct {
\\ <cyan>patch<r> <d>{s} → {s}<r>
\\ <cyan>minor<r> <d>{s} → {s}<r>
\\ <cyan>major<r> <d>{s} → {s}<r>
\\ <cyan>prerelease<r> <d>{s} → {s}<r>
\\ <cyan>prerelease<r> <d>{s} → {s}<r>
\\
;
Output.pretty(increment_help_text, .{
@@ -448,7 +448,7 @@ pub const PmVersionCommand = struct {
fn isGitClean(cwd: []const u8) bun.OOM!bool {
var path_buf: bun.PathBuffer = undefined;
const git_path = bun.which(&path_buf, bun.getenvZ("PATH") orelse "", cwd, "git") orelse {
const git_path = bun.which(&path_buf, bun.env_var.PATH.get() orelse "", cwd, "git") orelse {
Output.errGeneric("git must be installed to use `bun pm version --git-tag-version`", .{});
Global.exit(1);
};
@@ -481,7 +481,7 @@ pub const PmVersionCommand = struct {
fn getVersionFromGit(allocator: std.mem.Allocator, cwd: []const u8) bun.OOM![]const u8 {
var path_buf: bun.PathBuffer = undefined;
const git_path = bun.which(&path_buf, bun.getenvZ("PATH") orelse "", cwd, "git") orelse {
const git_path = bun.which(&path_buf, bun.env_var.PATH.get() orelse "", cwd, "git") orelse {
Output.errGeneric("git must be installed to use `bun pm version from-git`", .{});
Global.exit(1);
};
@@ -528,7 +528,7 @@ pub const PmVersionCommand = struct {
fn gitCommitAndTag(allocator: std.mem.Allocator, version: []const u8, custom_message: ?[]const u8, cwd: []const u8) bun.OOM!void {
var path_buf: bun.PathBuffer = undefined;
const git_path = bun.which(&path_buf, bun.getenvZ("PATH") orelse "", cwd, "git") orelse {
const git_path = bun.which(&path_buf, bun.env_var.PATH.get() orelse "", cwd, "git") orelse {
Output.errGeneric("git must be installed to use `bun pm version --git-tag-version`", .{});
Global.exit(1);
};