@@ -94,7 +94,7 @@ subroutine new_dependency(self, table, error)
94
94
end if
95
95
96
96
if (.not. allocated (self% git)) then
97
- call get_value(table, " revision " , obj)
97
+ call get_value(table, " rev " , obj)
98
98
if (allocated (obj)) then
99
99
self% git = git_target_revision(url, obj)
100
100
end if
@@ -120,9 +120,10 @@ subroutine check(table, error)
120
120
121
121
character (len= :), allocatable :: name
122
122
type (toml_key), allocatable :: list(:)
123
- logical :: url_present, git_target_present
123
+ logical :: url_present, git_target_present, has_path
124
124
integer :: ikey
125
125
126
+ has_path = .false.
126
127
url_present = .false.
127
128
git_target_present = .false.
128
129
@@ -146,6 +147,7 @@ subroutine check(table, error)
146
147
exit
147
148
end if
148
149
url_present = .true.
150
+ has_path = list(ikey)% key == ' path'
149
151
150
152
case (" branch" , " rev" , " tag" )
151
153
if (git_target_present) then
@@ -163,7 +165,7 @@ subroutine check(table, error)
163
165
return
164
166
end if
165
167
166
- if (.not. url_present .and. git_target_present) then
168
+ if (has_path .and. git_target_present) then
167
169
call syntax_error(error, " Dependency " // name// " uses a local path, therefore no git identifiers are allowed" )
168
170
end if
169
171
@@ -182,7 +184,7 @@ subroutine new_dependencies(deps, table, error)
182
184
! > Error handling
183
185
type (error_t), allocatable , intent (out ) :: error
184
186
185
- class (toml_table), pointer :: node
187
+ type (toml_table), pointer :: node
186
188
type (toml_key), allocatable :: list(:)
187
189
integer :: idep, stat
188
190
0 commit comments