Skip to content

Commit 8297433

Browse files
committed
add model build internal
1 parent 037ad72 commit 8297433

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/fpm/git.f90

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,10 @@ subroutine git_archive(source, destination, ref, verbose, error)
448448
call fatal_error(error, "Cannot find a suitable archive format for 'git archive'."); return
449449
end if
450450

451-
call run('fpm build --dump fpm_model.json', echo=verbose, exitstat=stat)
452451
call run('git archive ' &
453452
// ref // &
454453
' --format=' // archive_format // &
455-
' -o ' // destination // &
456-
' --add-file=fpm_model.json', echo=verbose, exitstat=stat)
457-
call run('rm fpm_model.json', echo=verbose, exitstat=stat)
454+
' -o ' // destination , echo=verbose, exitstat=stat)
458455
if (stat /= 0) then
459456
call fatal_error(error, "Error packing '"//source//"'."); return
460457
end if

src/fpm_command_line.f90

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ module fpm_command_line
134134
logical :: show_upload_data = .false.
135135
logical :: is_dry_run = .false.
136136
character(len=:), allocatable :: token
137-
character(len=:),allocatable :: dump_model
138137
end type
139138

140139
character(len=:),allocatable :: name
@@ -723,7 +722,6 @@ subroutine get_command_line_settings(cmd_settings)
723722
& show_model=lget('show-model'),&
724723
& build_tests=lget('tests'),&
725724
& verbose=lget('verbose'),&
726-
& dump_model = 'fpm_model.json',&
727725
& token=token_s)
728726

729727
case default

0 commit comments

Comments
 (0)