mirror of
				https://github.com/rclone/rclone.git
				synced 2025-10-30 23:17:59 +02:00 
			
		
		
		
	Makefile: remove deprecated go mod usage
This commit is contained in:
		
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							| @@ -114,21 +114,21 @@ release_dep_linux: | ||||
| # Update dependencies | ||||
| showupdates: | ||||
| 	@echo "*** Direct dependencies that could be updated ***" | ||||
| 	@GO111MODULE=on go list -u -f '{{if (and (not (or .Main .Indirect)) .Update)}}{{.Path}}: {{.Version}} -> {{.Update.Version}}{{end}}' -m all 2> /dev/null | ||||
| 	@go list -u -f '{{if (and (not (or .Main .Indirect)) .Update)}}{{.Path}}: {{.Version}} -> {{.Update.Version}}{{end}}' -m all 2> /dev/null | ||||
|  | ||||
| # Update direct dependencies only | ||||
| updatedirect: | ||||
| 	GO111MODULE=on go get -d $$(go list -m -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' all) | ||||
| 	GO111MODULE=on go mod tidy | ||||
| 	go get $$(go list -m -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' all) | ||||
| 	go mod tidy | ||||
|  | ||||
| # Update direct and indirect dependencies and test dependencies | ||||
| update: | ||||
| 	GO111MODULE=on go get -d -u -t ./... | ||||
| 	GO111MODULE=on go mod tidy | ||||
| 	go get -u -t ./... | ||||
| 	go mod tidy | ||||
|  | ||||
| # Tidy the module dependencies | ||||
| tidy: | ||||
| 	GO111MODULE=on go mod tidy | ||||
| 	go mod tidy | ||||
|  | ||||
| doc:	rclone.1 MANUAL.html MANUAL.txt rcdocs commanddocs | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user