Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal J. Bourguignon
asdf
Commits
1c07a364
Commit
1c07a364
authored
16 years ago
by
Gary King
Browse files
Options
Downloads
Patches
Plain Diff
Disambiguate missing-components/missing-dependencies and components/dependencies
that don't have a high enough version.
parent
7761fd2d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
asdf.lisp
+29
-11
29 additions, 11 deletions
asdf.lisp
test/test5.script
+3
-0
3 additions, 0 deletions
test/test5.script
with
32 additions
and
11 deletions
asdf.lisp
+
29
−
11
View file @
1c07a364
;;; This is asdf: Another System Definition Facility. $Revision: 1.1
19
$
;;; This is asdf: Another System Definition Facility. $Revision: 1.1
20
$
;;;
;;; Feedback, bug reports, and patches are all welcome: please mail to
;;; <cclan-list@lists.sf.net>. But note first that the canonical
...
...
@@ -95,7 +95,9 @@
#:error-component
#:error-operation
#:system-definition-error
#:missing-component
#:missing-component-of-version
#:missing-dependency
#:missing-dependency-of-version
#:circular-dependency
; errors
#:duplicate-names
...
...
@@ -116,7 +118,7 @@
(
in-package
#:asdf
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.1
19
$"
)
(
defvar
*asdf-revision*
(
let*
((
v
"$Revision: 1.1
20
$"
)
(
colon
(
or
(
position
#\:
v
)
-1
))
(
dot
(
position
#\.
v
)))
(
and
v
colon
dot
...
...
@@ -179,12 +181,18 @@ and NIL NAME and TYPE components"
(
define-condition
missing-component
(
system-definition-error
)
((
requires
:initform
"(unnamed)"
:reader
missing-requires
:initarg
:requires
)
(
version
:initform
nil
:reader
missing-version
:initarg
:version
)
(
parent
:initform
nil
:reader
missing-parent
:initarg
:parent
)))
(
define-condition
missing-component-of-version
(
missing-component
)
((
version
:initform
nil
:reader
missing-version
:initarg
:version
)))
(
define-condition
missing-dependency
(
missing-component
)
((
required-by
:initarg
:required-by
:reader
missing-required-by
)))
(
define-condition
missing-dependency-of-version
(
missing-dependency
missing-component-of-version
)
())
(
define-condition
operation-error
(
error
)
((
component
:reader
error-component
:initarg
:component
)
(
operation
:reader
error-operation
:initarg
:operation
))
...
...
@@ -229,14 +237,20 @@ and NIL NAME and TYPE components"
;;;; methods: components
(
defmethod
print-object
((
c
missing-component
)
s
)
(
format
s
"~@<component ~S not found~
~@[ or does not match version ~A~]~
(
format
s
"~@<component ~S not found~
~@[ in ~A~]~@:>"
(
missing-requires
c
)
(
missing-version
c
)
(
when
(
missing-parent
c
)
(
component-name
(
missing-parent
c
)))))
(
defmethod
print-object
((
c
missing-component-of-version
)
s
)
(
format
s
"~@<component ~S does not match version ~A~
~@[ in ~A~]~@:>"
(
missing-requires
c
)
(
missing-version
c
)
(
when
(
missing-parent
c
)
(
component-name
(
missing-parent
c
)))))
(
defgeneric
component-system
(
component
)
(
:documentation
"Find the top-level system containing COMPONENT"
))
...
...
@@ -671,10 +685,14 @@ the head of the tree"))
;; in-order-to slot with canonicalized
;; names instead of coercing this late
(
coerce-name
required-c
)
required-v
)
(
error
'missing-dependency
:required-by
c
:version
required-v
:requires
required-c
)))
(
if
required-v
(
error
'missing-dependency-of-version
:required-by
c
:version
required-v
:requires
required-c
)
(
error
'missing-dependency
:required-by
c
:requires
required-c
))))
(
op
(
make-sub-operation
c
operation
dep-c
required-op
)))
(
traverse
op
dep-c
)))
(
do-dep
(
op
dep
)
...
...
@@ -981,7 +999,7 @@ method.")
(
*verbose-out*
(
if
verbose
*standard-output*
(
make-broadcast-stream
)))
(
system
(
if
(
typep
system
'component
)
system
(
find-system
system
))))
(
unless
(
version-satisfies
system
version
)
(
error
'missing-component
:requires
system
:version
version
))
(
error
'missing-component
-of-version
:requires
system
:version
version
))
(
let
((
steps
(
traverse
op
system
)))
(
with-compilation-unit
()
(
loop
for
(
op
.
component
)
in
steps
do
...
...
This diff is collapsed.
Click to expand it.
test/test5.script
+
3
−
0
View file @
1c07a364
;;; -*- Lisp -*-
;;; test :load-only-p support
(load "script-support")
(load "../asdf")
(exit-on-error
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment