Skip to content

Commit f6ed25b

Browse files
committed
fix: fix for linux install. Remove bison and mercurial requirements
1 parent 0cb200a commit f6ed25b

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "default",
3-
"version": "1.1.0-beta.18",
3+
"version": "1.1.0-beta.20",
44
"description": "Default plugin for Codify - provides 50+ declarative resources for managing development tools and system configuration across macOS and Linux",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/go/goenv/goenv.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,18 @@ export class GoenvResource extends Resource<GoenvConfig> {
112112

113113
async function installOnMacOS(): Promise<void> {
114114
const $ = getPty();
115-
await $.spawn('brew install goenv mercurial bison', {
115+
await $.spawn('brew install goenv', {
116116
interactive: true,
117117
env: { HOMEBREW_NO_AUTO_UPDATE: '1' },
118118
});
119119
await FileUtils.addToShellRc(GOENV_INIT);
120120
}
121121

122122
async function installOnLinux(): Promise<void> {
123-
await Utils.installViaPkgMgr(
124-
'curl git mercurial make binutils bison gcc build-essential'
125-
);
123+
await Utils.installViaPkgMgr('git');
126124

127125
const $ = getPty();
128-
await $.spawnSafe(`git clone https://github.com/go-nv/goenv.git ${GOENV_ROOT}`, {
126+
await $.spawn(`git clone https://github.com/go-nv/goenv.git ${GOENV_ROOT}`, {
129127
interactive: true,
130128
});
131129

test/go/goenv.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ describe('Goenv resource integration tests', () => {
2626

2727
const { data: globalVersion } = await testSpawn('goenv global');
2828
expect(globalVersion.trim()).toBe('1.22.0');
29+
30+
const { data: goVersion, status: goStatus } = await testSpawn('go version');
31+
expect(goStatus).toBe(SpawnStatus.SUCCESS);
32+
expect(goVersion).toContain('go1.22.0');
2933
},
3034
validateDestroy: () => {
3135
const shellRc = TestUtils.getPrimaryShellRc();

0 commit comments

Comments
 (0)