File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 4848 "https://github.com/goreleaser/nfpm/releases/download/v{NFPM_VERSION}/{archive_name}"
4949 ) ;
5050
51- let mut res = ureq:: get ( url)
51+ let mut res = ureq:: get ( & url)
5252 . call ( )
53- . context ( "downloading nfpm from Github.com" ) ?;
53+ . with_context ( || format ! ( "downloading nfpm from {url}" ) ) ?;
5454
5555 let body: & mut ureq:: Body = res. body_mut ( ) ;
5656 let archive_path = outdir. as_ref ( ) . join ( "nfpm.tar.gz" ) ;
9898 let path = entry. path ( ) . context ( "retrieving entry path" ) ?;
9999 if let Some ( file_name) = path. file_name ( ) {
100100 if file_name. to_str ( ) == Some ( "nfpm" ) {
101- entry
102- . unpack ( & binary_path)
103- . context ( "unpacking nfpm" ) ?;
101+ entry. unpack ( & binary_path) . context ( "unpacking nfpm" ) ?;
104102 return Ok ( ( ) ) ;
105103 }
106104 }
You can’t perform that action at this time.
0 commit comments