mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-01 00:23:56 +08:00 
			
		
		
		
	migrate to github.com/distribution/reference v0.5.0
The "reference" package was moved to a separate module, which was extracted
from b9b19409cf
Also update compose-go, which also switched to distribution/reference;
full diff: https://github.com/compose-spec/compose-go/compare/v1.18.3...v1.18.4
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
			
			
This commit is contained in:
		
							
								
								
									
										14
									
								
								vendor/github.com/compose-spec/compose-go/types/project.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/github.com/compose-spec/compose-go/types/project.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -24,10 +24,9 @@ import ( | ||||
| 	"path/filepath" | ||||
| 	"sort" | ||||
|  | ||||
| 	"github.com/compose-spec/compose-go/utils" | ||||
|  | ||||
| 	"github.com/compose-spec/compose-go/dotenv" | ||||
| 	"github.com/distribution/distribution/v3/reference" | ||||
| 	"github.com/compose-spec/compose-go/utils" | ||||
| 	"github.com/distribution/reference" | ||||
| 	godigest "github.com/opencontainers/go-digest" | ||||
| 	"github.com/pkg/errors" | ||||
| 	"golang.org/x/sync/errgroup" | ||||
| @@ -424,7 +423,14 @@ func (p *Project) ForServices(names []string, options ...DependencyOption) error | ||||
| 		if _, ok := set[s.Name]; ok { | ||||
| 			for _, option := range options { | ||||
| 				if option == IgnoreDependencies { | ||||
| 					s.DependsOn = nil | ||||
| 					// remove all dependencies but those implied by explicitly selected services | ||||
| 					dependencies := s.DependsOn | ||||
| 					for d := range dependencies { | ||||
| 						if _, ok := set[d]; !ok { | ||||
| 							delete(dependencies, d) | ||||
| 						} | ||||
| 					} | ||||
| 					s.DependsOn = dependencies | ||||
| 				} | ||||
| 			} | ||||
| 			enabled = append(enabled, s) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sebastiaan van Stijn
					Sebastiaan van Stijn