Skip to content

Commit 3e154e7

Browse files
Araqnarimiran
authored andcommitted
CIs: attempt to use csources_v1 (#16282)
* CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting (cherry picked from commit a9b62de)
1 parent e70044f commit 3e154e7

20 files changed

+31
-29
lines changed

.builds/freebsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ environment:
1515
tasks:
1616
- setup: |
1717
cd Nim
18-
git clone --depth 1 -q https://github.com/nim-lang/csources.git
18+
git clone --depth 1 -q https://github.com/nim-lang/csources_v1.git csources
1919
gmake -C csources -j $(sysctl -n hw.ncpu)
2020
bin/nim c --skipUserCfg --skipParentCfg koch
2121
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv

.builds/openbsd_0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ environment:
1818
tasks:
1919
- setup: |
2020
cd Nim
21-
git clone --depth 1 -q https://github.com/nim-lang/csources.git
21+
git clone --depth 1 -q https://github.com/nim-lang/csources_v1.git csources
2222
gmake -C csources -j $(sysctl -n hw.ncpuonline)
2323
bin/nim c koch
2424
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv

.builds/openbsd_1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ environment:
1818
tasks:
1919
- setup: |
2020
cd Nim
21-
git clone --depth 1 -q https://github.com/nim-lang/csources.git
21+
git clone --depth 1 -q https://github.com/nim-lang/csources_v1.git csources
2222
gmake -C csources -j $(sysctl -n hw.ncpuonline)
2323
bin/nim c koch
2424
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv

.github/workflows/ci_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
id: csources-version
7575
shell: bash
7676
run: |
77-
sha=$(git ls-remote https://github.com/nim-lang/csources master | cut -f 1)
77+
sha=$(git ls-remote https://github.com/nim-lang/csources_v1 master | cut -f 1)
7878
echo "::set-output name=sha::$sha"
7979
8080
- name: 'Get prebuilt csources from cache'
@@ -88,7 +88,7 @@ jobs:
8888
if: steps.csources-cache.outputs.cache-hit != 'true'
8989
uses: actions/checkout@v2
9090
with:
91-
repository: nim-lang/csources
91+
repository: nim-lang/csources_v1
9292
path: csources
9393

9494
- name: 'Build 1-stage compiler from csources'

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- checkout: self
5656
fetchDepth: 1
5757

58-
- bash: git clone --depth 1 https://github.com/nim-lang/csources
58+
- bash: git clone --depth 1 https://github.com/nim-lang/csources_v1 csources
5959
displayName: 'Checkout Nim csources'
6060

6161
- task: NodeTool@0

ci/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ REM Some debug info
22
echo "Running on %CI_RUNNER_ID% (%CI_RUNNER_DESCRIPTION%) with tags %CI_RUNNER_TAGS%."
33
gcc -v
44

5-
git clone --depth 1 https://github.com/nim-lang/csources.git
5+
git clone --depth 1 https://github.com/nim-lang/csources_v1.git csources
66
cd csources
77
call build64.bat
88
cd ..

ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sh ci/deps.sh
22

33
# Build from C sources.
4-
git clone --depth 1 https://github.com/nim-lang/csources.git
4+
git clone --depth 1 https://github.com/nim-lang/csources_v1.git csources
55
cd csources
66
sh build.sh
77
cd ..

ci/nsis_build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Rem Build csources
2525
koch csources -d:release || exit /b
2626

2727
rem Grab C sources and nimsuggest
28-
git clone --depth 1 https://github.com/nim-lang/csources.git
28+
git clone --depth 1 https://github.com/nim-lang/csources_v1.git csources
2929

3030
set PATH=%CD%\bin;%PATH%
3131

compiler/jsgen.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import
3535
cgmeth, lowerings, sighashes, modulegraphs, lineinfos, rodutils,
3636
transf, injectdestructors, sourcemap
3737

38-
import std/[json, sets, math, tables, intsets, strutils]
38+
import json, sets, math, tables, intsets, strutils
3939

4040
from modulegraphs import ModuleGraph, PPassContext
4141

compiler/nim.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import
2424
idents, lineinfos, cmdlinehelper,
2525
pathutils, modulegraphs
2626

27-
from std/browsers import openDefaultBrowser
27+
from browsers import openDefaultBrowser
2828
from nodejs import findNodeJs
2929

3030
when hasTinyCBackend:

0 commit comments

Comments
 (0)