Skip to content

Commit

Permalink
clone sat
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Mar 5, 2024
1 parent c353928 commit 0d73c71
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 890 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
- name: Run tests
run: |
cd atlas
nim cloneDeps
nim c -r tests/tester.nim
- name: Test install with Nimble
Expand Down
4 changes: 4 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ task unitTests, "Runs unit tests":
task tester, "Runs integration tests":
exec "nim c -d:debug -r tests/tester.nim"

task cloneDeps, "clone Atlas deps":
exec "nim r src/private/clone.nim"

task buildRelease, "Build release":
exec "nim r src/private/clone.nim"
when defined(macosx):
let x86Args = "\"-target x86_64-apple-macos11 -arch x86_64 -DARCH=x86_64\""
exec "nim c -d:release --passC:" & x86args & " --passL:" & x86args & " -o:./atlas_x86_64 src/atlas.nim"
Expand Down
1 change: 1 addition & 0 deletions dist/sat
Submodule sat added at ff49b7
1 change: 1 addition & 0 deletions nim-testutils
Submodule nim-testutils added at 460c90
1 change: 1 addition & 0 deletions nim-unittest2
Submodule nim-unittest2 added at 183eaa
1 change: 1 addition & 0 deletions nimble
Submodule nimble added at 3575fd
1 change: 1 addition & 0 deletions packages
Submodule packages added at b03a72
4 changes: 3 additions & 1 deletion src/atlas.nim
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
## a Nimble dependency and its dependencies recursively.

import std / [parseopt, strutils, os, osproc, tables, sets, json, jsonutils]
import versions, context, osutils, packagesjson, sat, gitops, nimenv, lockfiles,
import versions, context, osutils, packagesjson, gitops, nimenv, lockfiles,
depgraphs, confighandler, configutils, cloner, nimblechecksums, reporters,
nimbleparser, pkgurls

from std/terminal import isatty

import ../dist/sat/src/sat/sat

const
AtlasVersion =
block:
Expand Down
5 changes: 4 additions & 1 deletion src/depgraphs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

import std / [sets, tables, os, strutils, streams, json, jsonutils, algorithm]

import context, satvars, sat, gitops, runners, reporters, nimbleparser, pkgurls, cloner, versions
import context, gitops, runners, reporters, nimbleparser, pkgurls, cloner, versions

import ../dist/sat/src/sat/[sat, satvars]


type
DependencyVersion* = object # Represents a specific version of a project.
Expand Down
4 changes: 3 additions & 1 deletion src/nimbleparser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#

import std / [os, strutils, tables, unicode, hashes]
import versions, satvars, packagesjson, reporters, gitops, parse_requires, pkgurls, compiledpatterns
import versions, packagesjson, reporters, gitops, parse_requires, pkgurls, compiledpatterns

import ../dist/sat/src/sat/satvars

Check failure on line 12 in src/nimbleparser.nim

View workflow job for this annotation

GitHub Actions / windows-amd64-nim-devel (master)

cannot open file: ../dist/sat/src/sat/satvars

Check failure on line 12 in src/nimbleparser.nim

View workflow job for this annotation

GitHub Actions / windows-i386-nim-devel (master)

cannot open file: ../dist/sat/src/sat/satvars

type
DependencyStatus* = enum
Expand Down
Loading

0 comments on commit 0d73c71

Please sign in to comment.