Skip to content

Commit b42b510

Browse files
committed
Fixing commands for other libraries to ensure Ci is working
1 parent 0c26a2a commit b42b510

5 files changed

Lines changed: 21 additions & 20 deletions

File tree

src/TreeSitter-Libraries/TSLibrariesCSS.class.st

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ TSLibrariesCSS >> cloneTreeSitterCSS [
1515
"before cloning get the latest release"
1616
lastReleasedVersion := self class gitBranchToUse ifNil: [ self latestReleaseTagForOwner: 'tree-sitter' repo: 'tree-sitter-css' ].
1717

18-
"Execute clone command"
19-
cloneCommand := 'git clone --branch ', lastReleasedVersion ,' --depth 1 https://github.com/tree-sitter/tree-sitter-css.git '
20-
, clonePath.
18+
"Execute clone command"
19+
cloneCommand := self
20+
gitCloneCommandFor: 'https://github.com/tree-sitter/tree-sitter-css.git'
21+
branch: lastReleasedVersion
22+
destination: clonePath.
23+
2124

2225
self logInTranscript:
2326
'Start cloning Tree-Sitter-CSS in' , clonePath.

src/TreeSitter-Libraries/TSLibrariesHTML.class.st

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ TSLibrariesHTML >> cloneTreeSitterHTML [
1515
"before cloning get the latest release"
1616
lastReleasedVersion := self class gitBranchToUse ifNil: [ self latestReleaseTagForOwner: 'tree-sitter' repo: 'tree-sitter-html' ].
1717

18-
"Execute clone command"
19-
"cloneCommand := 'git clone https://github.com/tree-sitter/tree-sitter-html.git '
20-
, clonePath."
21-
cloneCommand := 'git clone --branch ', lastReleasedVersion ,' --depth 1 https://github.com/tree-sitter/tree-sitter-html.git '
22-
, clonePath.
18+
"Execute clone command"
19+
cloneCommand := self
20+
gitCloneCommandFor: 'https://github.com/tree-sitter/tree-sitter-html.git'
21+
branch: lastReleasedVersion
22+
destination: clonePath.
2323

2424
self logInTranscript:
2525
'Start cloning Tree-Sitter-HTML in' , clonePath.

src/TreeSitter-Libraries/TSLibrariesPython.class.st

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ TSLibrariesPython >> cloneTreeSitterPython [
1515
"before cloning get the latest release"
1616
lastReleasedVersion := self class gitBranchToUse ifNil: [ self latestReleaseTagForOwner: 'tree-sitter' repo: 'tree-sitter-python' ].
1717

18-
1918
"Execute clone command"
20-
"cloneCommand := 'git clone https://github.com/tree-sitter/tree-sitter-python.git '
21-
, clonePath."
22-
cloneCommand := 'git clone --branch ', lastReleasedVersion ,' --depth 1 https://github.com/tree-sitter/tree-sitter-python.git '
23-
, clonePath.
19+
cloneCommand := self
20+
gitCloneCommandFor: 'https://github.com/tree-sitter/tree-sitter-python.git'
21+
branch: lastReleasedVersion
22+
destination: clonePath.
2423

2524
self logInTranscript:
2625
'Start cloning Tree-Sitter-python in' , clonePath.

src/TreeSitter-Libraries/TSLibrariesXML.class.st

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ TSLibrariesXML >> cloneTreeSitterXML [
1616
lastReleasedVersion := self class gitBranchToUse ifNil: [ self latestReleaseTagForOwner: 'tree-sitter-grammars' repo: 'tree-sitter-xml' ].
1717

1818
"Execute clone command"
19-
"cloneCommand := 'git clone https://github.com/tree-sitter-grammars/tree-sitter-xml.git '
20-
, clonePath."
21-
22-
cloneCommand := 'git clone --branch ', lastReleasedVersion ,' --depth 1 https://github.com/tree-sitter-grammars/tree-sitter-xml.git '
23-
, clonePath.
19+
cloneCommand := self
20+
gitCloneCommandFor: 'https://github.com/tree-sitter-grammars/tree-sitter-xml.git'
21+
branch: lastReleasedVersion
22+
destination: clonePath.
2423

2524
self logInTranscript:
2625
'Start cloning Tree-Sitter-XML in' , clonePath.

src/TreeSitter-Libraries/TSLibrariesYAML.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Class {
88
{ #category : 'as yet unclassified' }
99
TSLibrariesYAML >> cloneTreeSitterYAML [
1010

11-
| clonePath cloneCommand status lastReleasedVersion|
11+
| clonePath cloneCommand status |
1212
"Construct clone path"
1313
clonePath := self originalLibrariesDirectory , '/tree-sitter-yaml'.
1414

@@ -19,7 +19,7 @@ TSLibrariesYAML >> cloneTreeSitterYAML [
1919
cloneCommand := 'git clone https://github.com/ikatyang/tree-sitter-yaml.git '
2020
, clonePath.
2121
"cloneCommand := 'git clone --branch ', lastReleasedVersion ,' --depth 1 https://github.com/ikatyang/tree-sitter-yaml.git '
22-
, clonePath."
22+
, clonePath."
2323

2424
self logInTranscript:
2525
'Start cloning Tree-Sitter-YAML in' , clonePath.

0 commit comments

Comments
 (0)