├── VERSION ├── .github ├── .syncignore ├── CODEOWNERS └── workflows │ └── synchronize-labels.yml ├── fixtures ├── brats │ ├── Procfile │ ├── Godeps │ │ ├── Godeps.json │ │ └── Readme │ ├── README.md │ └── site.go ├── mod │ ├── simple │ │ ├── .gitignore │ │ ├── README.md │ │ └── go.mod │ ├── vendored │ │ ├── .gitignore │ │ ├── Procfile │ │ ├── vendor │ │ │ ├── github.com │ │ │ │ ├── BurntSushi │ │ │ │ │ └── toml │ │ │ │ │ │ ├── session.vim │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ ├── COMPATIBLE │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── encoding_types_1.1.go │ │ │ │ │ │ └── encoding_types.go │ │ │ │ └── satori │ │ │ │ │ └── go.uuid │ │ │ │ │ └── .travis.yml │ │ │ └── modules.txt │ │ ├── README.md │ │ └── go.mod │ └── install_package_spec │ │ ├── absolute │ │ ├── go.mod │ │ └── cmd │ │ │ └── app │ │ │ └── site.go │ │ ├── relative │ │ ├── go.mod │ │ └── cmd │ │ │ └── app │ │ │ └── site.go │ │ └── vendored │ │ ├── go.mod │ │ ├── vendor │ │ ├── modules.txt │ │ └── github.com │ │ │ └── deckarep │ │ │ └── golang-set │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ │ ├── go.sum │ │ └── cmd │ │ └── app │ │ └── site.go ├── default │ ├── symlink_dir │ │ ├── random_dir │ │ │ └── .gitkeep │ │ ├── sym_dir │ │ └── site.go │ ├── ldflags │ │ ├── Procfile │ │ ├── Godeps │ │ │ ├── Godeps.json │ │ │ └── Readme │ │ ├── buildpack.yml │ │ ├── README.md │ │ └── site.go │ ├── simple │ │ ├── Procfile │ │ ├── Godeps │ │ │ ├── Godeps.json │ │ │ └── Readme │ │ ├── README.md │ │ └── site.go │ ├── vendored │ │ ├── Procfile │ │ ├── .gitignore │ │ ├── vendor │ │ │ └── github.com │ │ │ │ └── vendorlib │ │ │ │ └── vendorlib.go │ │ ├── README.md │ │ └── site.go │ ├── install_package_spec │ │ ├── vendored │ │ │ ├── Procfile │ │ │ ├── vendor │ │ │ │ └── github.com │ │ │ │ │ └── vendorlib │ │ │ │ │ ├── go.mod │ │ │ │ │ └── vendorlib.go │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ └── app │ │ │ │ └── site.go │ │ └── simple │ │ │ └── app │ │ │ └── site.go │ ├── no_procfile │ │ ├── Godeps │ │ │ ├── Godeps.json │ │ │ └── Readme │ │ └── site.go │ ├── builtin │ │ └── site.go │ └── single_file │ │ └── site.go ├── errors │ ├── no_gopackagename │ │ ├── vendor │ │ │ └── .gitkeep │ │ ├── .gitignore │ │ └── site.go │ ├── godir │ │ ├── .godir │ │ ├── Procfile │ │ ├── message │ │ │ └── message.go │ │ ├── worker │ │ │ └── main.go │ │ ├── web.go │ │ └── Readme │ ├── unvendored_godep │ │ ├── Procfile │ │ ├── Godeps │ │ │ ├── Readme │ │ │ └── Godeps.json │ │ ├── package.sh │ │ └── web.go │ └── go_version │ │ ├── Godeps │ │ ├── Godeps.json │ │ └── Readme │ │ ├── README.md │ │ └── site.go ├── multibuildpack │ ├── nltk │ │ ├── nltk.txt │ │ └── requirements.txt │ ├── python │ │ ├── requirements.txt │ │ └── site.go │ ├── ruby │ │ ├── Gemfile │ │ ├── Gemfile.lock │ │ └── site.go │ ├── conda │ │ ├── environment.yml │ │ ├── requirements.txt │ │ └── site.go │ ├── nodejs │ │ └── package.json │ └── dotnet │ │ └── site.go ├── glide │ ├── simple │ │ ├── Procfile │ │ ├── glide.yaml │ │ ├── glide.lock │ │ └── web.go │ └── vendored │ │ ├── Procfile │ │ ├── glide.yaml │ │ ├── vendor │ │ └── github.com │ │ │ └── ZiCog │ │ │ └── shiny-thing │ │ │ ├── bar │ │ │ ├── bye.go │ │ │ └── hello.go │ │ │ ├── foo │ │ │ ├── bye.go │ │ │ └── hello.go │ │ │ └── shiny-thing.go │ │ ├── glide.lock │ │ └── web.go ├── godep │ ├── simple │ │ ├── Procfile │ │ ├── .gitignore │ │ ├── Godeps │ │ │ ├── Readme │ │ │ ├── Godeps.json │ │ │ └── _workspace │ │ │ │ └── src │ │ │ │ └── github.com │ │ │ │ └── ZiCog │ │ │ │ └── shiny-thing │ │ │ │ └── foo │ │ │ │ └── hello.go │ │ ├── package.sh │ │ └── web.go │ ├── vendored │ │ ├── Procfile │ │ ├── Godeps │ │ │ ├── Readme │ │ │ └── Godeps.json │ │ ├── vendor │ │ │ └── github.com │ │ │ │ └── ZiCog │ │ │ │ └── shiny-thing │ │ │ │ └── foo │ │ │ │ ├── bye.go │ │ │ │ └── hello.go │ │ ├── package.sh │ │ └── web.go │ └── wildcard_go_version │ │ ├── Procfile │ │ ├── Godeps │ │ ├── Godeps.json │ │ └── Readme │ │ ├── README.md │ │ └── site.go ├── go_toolchain │ └── toolchain │ │ ├── Procfile │ │ ├── Godeps │ │ ├── Godeps.json │ │ └── Readme │ │ └── README.md ├── util │ ├── override_buildpack │ │ ├── go.tgz │ │ ├── bin │ │ │ ├── compile │ │ │ └── supply │ │ └── override.yml │ ├── dynatrace │ │ ├── go.mod │ │ ├── dynatrace-env.sh │ │ ├── ruxitagentproc.conf │ │ ├── liboneagentproc.so │ │ ├── fake_config.json │ │ ├── manifest.json │ │ └── install.sh │ └── proxy │ │ ├── go.mod │ │ ├── main.go │ │ └── go.sum └── dep │ ├── simple │ ├── Gopkg.toml │ ├── site.go │ └── Gopkg.lock │ ├── no_lockfile │ ├── Gopkg.toml │ └── site.go │ └── vendored │ ├── Gopkg.toml │ ├── site.go │ └── Gopkg.lock ├── vendor ├── github.com │ ├── felixge │ │ └── httpsnoop │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ └── docs.go │ ├── docker │ │ ├── go-connections │ │ │ ├── sockets │ │ │ │ ├── README.md │ │ │ │ └── tcp_socket.go │ │ │ └── tlsconfig │ │ │ │ ├── certpool.go │ │ │ │ └── config_client_ciphers.go │ │ ├── docker │ │ │ ├── api │ │ │ │ ├── types │ │ │ │ │ ├── error_response_ext.go │ │ │ │ │ ├── checkpoint │ │ │ │ │ │ ├── list.go │ │ │ │ │ │ └── options.go │ │ │ │ │ ├── swarm │ │ │ │ │ │ ├── runtime │ │ │ │ │ │ │ ├── gen.go │ │ │ │ │ │ │ └── plugin.proto │ │ │ │ │ │ ├── service_update_response.go │ │ │ │ │ │ └── service_create_response.go │ │ │ │ │ ├── container │ │ │ │ │ │ ├── errors.go │ │ │ │ │ │ ├── wait_exit_error.go │ │ │ │ │ │ ├── change_type.go │ │ │ │ │ │ ├── wait_response.go │ │ │ │ │ │ ├── filesystem_change.go │ │ │ │ │ │ ├── change_types.go │ │ │ │ │ │ ├── create_request.go │ │ │ │ │ │ ├── create_response.go │ │ │ │ │ │ └── container_update.go │ │ │ │ │ ├── volume │ │ │ │ │ │ ├── volume_update.go │ │ │ │ │ │ ├── options.go │ │ │ │ │ │ └── list_response.go │ │ │ │ │ ├── error_response.go │ │ │ │ │ ├── id_response.go │ │ │ │ │ ├── image │ │ │ │ │ │ └── delete_response.go │ │ │ │ │ ├── plugin_interface_type.go │ │ │ │ │ ├── network │ │ │ │ │ │ └── create_response.go │ │ │ │ │ ├── plugin_env.go │ │ │ │ │ ├── plugin_device.go │ │ │ │ │ ├── blkiodev │ │ │ │ │ │ └── blkio.go │ │ │ │ │ ├── port.go │ │ │ │ │ └── system │ │ │ │ │ │ └── runtime.go │ │ │ │ └── swagger-gen.yaml │ │ │ ├── client │ │ │ │ ├── client_windows.go │ │ │ │ ├── client_unix.go │ │ │ │ ├── interface_stable.go │ │ │ │ ├── service_remove.go │ │ │ │ ├── network_remove.go │ │ │ │ ├── plugin_set.go │ │ │ │ ├── swarm_join.go │ │ │ │ ├── container_unpause.go │ │ │ │ ├── container_pause.go │ │ │ │ ├── swarm_unlock.go │ │ │ │ ├── config_remove.go │ │ │ │ ├── secret_remove.go │ │ │ │ ├── swarm_leave.go │ │ │ │ ├── build_cancel.go │ │ │ │ ├── container_rename.go │ │ │ │ ├── checkpoint_create.go │ │ │ │ ├── node_remove.go │ │ │ │ ├── node_update.go │ │ │ │ ├── plugin_remove.go │ │ │ │ ├── plugin_disable.go │ │ │ │ ├── plugin_enable.go │ │ │ │ ├── container_kill.go │ │ │ │ ├── plugin_push.go │ │ │ │ ├── container_export.go │ │ │ │ ├── image_save.go │ │ │ │ ├── swarm_inspect.go │ │ │ │ ├── swarm_init.go │ │ │ │ ├── version.go │ │ │ │ ├── network_disconnect.go │ │ │ │ ├── volume_create.go │ │ │ │ ├── network_connect.go │ │ │ │ ├── config_update.go │ │ │ │ ├── secret_update.go │ │ │ │ ├── swarm_get_unlock_key.go │ │ │ │ ├── checkpoint_delete.go │ │ │ │ ├── interface_experimental.go │ │ │ │ └── plugin_create.go │ │ │ ├── errdefs │ │ │ │ └── doc.go │ │ │ └── NOTICE │ │ └── go-units │ │ │ ├── circle.yml │ │ │ └── README.md │ ├── elazarl │ │ └── goproxy │ │ │ ├── .gitignore │ │ │ ├── logger.go │ │ │ └── all.bash │ ├── cloudfoundry │ │ ├── libbuildpack │ │ │ ├── .gitignore │ │ │ ├── cutlass │ │ │ │ ├── constants.go │ │ │ │ └── logger.go │ │ │ ├── README.md │ │ │ ├── ansicleaner │ │ │ │ └── buffer.go │ │ │ └── NOTICE │ │ └── switchblade │ │ │ ├── .gitignore │ │ │ ├── deployment.go │ │ │ ├── internal │ │ │ └── cloudfoundry │ │ │ │ ├── executable.go │ │ │ │ └── deinitialize.go │ │ │ └── random_name.go │ ├── nxadm │ │ └── tail │ │ │ ├── .gitignore │ │ │ ├── ratelimiter │ │ │ └── storage.go │ │ │ ├── .cirrus.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── tail_posix.go │ │ │ ├── Dockerfile │ │ │ └── tail_windows.go │ ├── Microsoft │ │ └── go-winio │ │ │ ├── .gitattributes │ │ │ ├── CODEOWNERS │ │ │ ├── internal │ │ │ └── fs │ │ │ │ ├── doc.go │ │ │ │ └── security.go │ │ │ ├── .gitignore │ │ │ ├── syscall.go │ │ │ └── pkg │ │ │ └── guid │ │ │ ├── guid_windows.go │ │ │ └── guid_nonwindows.go │ ├── distribution │ │ └── reference │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── CODE-OF-CONDUCT.md │ │ │ ├── SECURITY.md │ │ │ └── .golangci.yml │ ├── teris-io │ │ └── shortid │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── gabriel-vasile │ │ └── mimetype │ │ │ ├── .gitattributes │ │ │ ├── internal │ │ │ └── magic │ │ │ │ └── database.go │ │ │ └── CONTRIBUTING.md │ ├── sclevine │ │ └── spec │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── onsi │ │ ├── gomega │ │ │ ├── .gitignore │ │ │ └── matchers │ │ │ │ ├── support │ │ │ │ └── goraph │ │ │ │ │ ├── node │ │ │ │ │ └── node.go │ │ │ │ │ └── util │ │ │ │ │ └── util.go │ │ │ │ ├── attributes_slice.go │ │ │ │ └── be_nil_matcher.go │ │ └── ginkgo │ │ │ ├── .gitignore │ │ │ ├── reporters │ │ │ ├── stenographer │ │ │ │ └── support │ │ │ │ │ ├── go-isatty │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── isatty_appengine.go │ │ │ │ │ ├── isatty_linux.go │ │ │ │ │ ├── isatty_solaris.go │ │ │ │ │ ├── isatty_bsd.go │ │ │ │ │ ├── isatty_windows.go │ │ │ │ │ └── README.md │ │ │ │ │ └── go-colorable │ │ │ │ │ └── colorable_others.go │ │ │ └── reporter.go │ │ │ ├── internal │ │ │ ├── specrunner │ │ │ │ └── random_id.go │ │ │ ├── remote │ │ │ │ └── output_interceptor.go │ │ │ ├── leafnodes │ │ │ │ └── interfaces.go │ │ │ ├── global │ │ │ │ └── init.go │ │ │ └── spec_iterator │ │ │ │ └── spec_iterator.go │ │ │ ├── types │ │ │ ├── code_location.go │ │ │ └── synchronization.go │ │ │ ├── .travis.yml │ │ │ └── RELEASING.md │ ├── kr │ │ └── go-heroku-example │ │ │ └── message │ │ │ └── message.go │ ├── fsnotify │ │ └── fsnotify │ │ │ ├── internal │ │ │ ├── internal.go │ │ │ └── unix2.go │ │ │ ├── .mailmap │ │ │ ├── .gitignore │ │ │ ├── system_bsd.go │ │ │ ├── system_darwin.go │ │ │ └── .cirrus.yml │ ├── opencontainers │ │ └── go-digest │ │ │ ├── .travis.yml │ │ │ ├── .mailmap │ │ │ ├── MAINTAINERS │ │ │ └── .pullapprove.yml │ ├── ulikunitz │ │ └── xz │ │ │ ├── fox.xz │ │ │ ├── lzma │ │ │ └── fox.lzma │ │ │ ├── fox-check-none.xz │ │ │ ├── make-docs │ │ │ ├── .gitignore │ │ │ ├── internal │ │ │ └── hash │ │ │ │ └── doc.go │ │ │ └── none-check.go │ ├── vendorlib │ │ └── vendorlib.go │ ├── paketo-buildpacks │ │ └── packit │ │ │ ├── v2 │ │ │ ├── fs │ │ │ │ ├── doc.go │ │ │ │ ├── is_empty_dir.go │ │ │ │ └── exists.go │ │ │ ├── vacation │ │ │ │ └── vacation.go │ │ │ └── NOTICE │ │ │ └── NOTICE │ ├── go-logr │ │ ├── logr │ │ │ ├── CHANGELOG.md │ │ │ ├── .golangci.yaml │ │ │ └── CONTRIBUTING.md │ │ └── stdr │ │ │ └── README.md │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── ZiCog │ │ └── shiny-thing │ │ │ └── foo │ │ │ ├── bye.go │ │ │ └── hello.go │ ├── Masterminds │ │ └── semver │ │ │ └── version_fuzz.go │ ├── Dynatrace │ │ └── libbuildpack-dynatrace │ │ │ └── .gitignore │ ├── google │ │ └── go-cmp │ │ │ └── cmp │ │ │ └── internal │ │ │ ├── flags │ │ │ └── flags.go │ │ │ └── diff │ │ │ └── debug_disable.go │ ├── cenkalti │ │ └── backoff │ │ │ └── v4 │ │ │ └── .gitignore │ ├── golang │ │ └── mock │ │ │ └── AUTHORS │ ├── blang │ │ └── semver │ │ │ ├── package.json │ │ │ ├── json.go │ │ │ ├── sort.go │ │ │ └── sql.go │ ├── gogo │ │ └── protobuf │ │ │ └── AUTHORS │ └── tidwall │ │ └── match │ │ └── README.md ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── config_pre_go124.go │ │ │ └── timer.go │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── vgetrandom_unsupported.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── endian_big.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── endian_little.go │ │ │ ├── mmap_nomremap.go │ │ │ ├── vgetrandom_linux.go │ │ │ ├── aliases.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sysvshm_linux.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── race0.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ └── syscall_unix_gc.go │ │ └── windows │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ └── str.go │ │ └── text │ │ ├── secure │ │ └── bidirule │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ │ ├── encoding │ │ ├── japanese │ │ │ └── all.go │ │ └── simplifiedchinese │ │ │ └── all.go │ │ └── internal │ │ └── language │ │ └── common.go ├── go.opentelemetry.io │ ├── otel │ │ ├── requirements.txt │ │ ├── .gitattributes │ │ ├── .codespellignore │ │ ├── codes │ │ │ ├── README.md │ │ │ └── doc.go │ │ ├── baggage │ │ │ ├── README.md │ │ │ └── doc.go │ │ ├── metric │ │ │ ├── README.md │ │ │ ├── noop │ │ │ │ └── README.md │ │ │ └── embedded │ │ │ │ └── README.md │ │ ├── trace │ │ │ ├── README.md │ │ │ ├── embedded │ │ │ │ └── README.md │ │ │ └── nonrecording.go │ │ ├── attribute │ │ │ ├── README.md │ │ │ └── doc.go │ │ ├── .gitignore │ │ ├── propagation │ │ │ ├── README.md │ │ │ └── doc.go │ │ ├── semconv │ │ │ ├── v1.20.0 │ │ │ │ ├── README.md │ │ │ │ ├── exception.go │ │ │ │ ├── http.go │ │ │ │ ├── doc.go │ │ │ │ └── schema.go │ │ │ └── v1.26.0 │ │ │ │ ├── README.md │ │ │ │ ├── exception.go │ │ │ │ ├── doc.go │ │ │ │ └── schema.go │ │ ├── version.go │ │ ├── .codespellrc │ │ ├── .lycheeignore │ │ ├── internal_logging.go │ │ ├── .markdownlint.yaml │ │ ├── CODEOWNERS │ │ └── verify_readmes.sh │ └── contrib │ │ └── instrumentation │ │ └── net │ │ └── http │ │ └── otelhttp │ │ ├── doc.go │ │ └── version.go ├── code.cloudfoundry.org │ └── lager │ │ └── package.go └── gopkg.in │ ├── tomb.v1 │ └── README.md │ ├── yaml.v2 │ ├── .travis.yml │ └── NOTICE │ └── yaml.v3 │ └── NOTICE ├── .envrc ├── .gitignore ├── bin ├── release ├── compile ├── supply └── finalize ├── .gitallowed ├── src └── go │ ├── hooks │ ├── dynatrace.go │ ├── hooks_suite_test.go │ └── hooks_debug.go │ ├── godep │ └── godep.go │ ├── supply │ └── supply_suite_test.go │ ├── finalize │ └── finalize_suite_test.go │ └── data │ └── data.go ├── config.json ├── PULL_REQUEST_TEMPLATE ├── ISSUE_TEMPLATE └── NOTICE /VERSION: -------------------------------------------------------------------------------- 1 | 1.10.41 2 | -------------------------------------------------------------------------------- /.github/.syncignore: -------------------------------------------------------------------------------- 1 | CODEOWNERS 2 | -------------------------------------------------------------------------------- /fixtures/brats/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/mod/simple/.gitignore: -------------------------------------------------------------------------------- 1 | !vendor 2 | -------------------------------------------------------------------------------- /fixtures/default/symlink_dir/random_dir/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fixtures/default/symlink_dir/sym_dir: -------------------------------------------------------------------------------- 1 | random_dir -------------------------------------------------------------------------------- /fixtures/errors/no_gopackagename/vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/.gitignore: -------------------------------------------------------------------------------- 1 | !vendor 2 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/nltk/nltk.txt: -------------------------------------------------------------------------------- 1 | brown 2 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fixtures/default/ldflags/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/default/simple/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/default/vendored/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/errors/godir/.godir: -------------------------------------------------------------------------------- 1 | go_heroku_example 2 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/errors/godir/Procfile: -------------------------------------------------------------------------------- 1 | web: go_heroku_example 2 | -------------------------------------------------------------------------------- /fixtures/errors/no_gopackagename/.gitignore: -------------------------------------------------------------------------------- 1 | !vendor 2 | -------------------------------------------------------------------------------- /fixtures/glide/simple/Procfile: -------------------------------------------------------------------------------- 1 | web: go_app_with_glide 2 | -------------------------------------------------------------------------------- /fixtures/godep/simple/Procfile: -------------------------------------------------------------------------------- 1 | web: go_dependencies 2 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fixtures/go_toolchain/toolchain/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/godep/vendored/Procfile: -------------------------------------------------------------------------------- 1 | web: with_dependencies 2 | -------------------------------------------------------------------------------- /fixtures/godep/wildcard_go_version/Procfile: -------------------------------------------------------------------------------- 1 | web: go-online 2 | -------------------------------------------------------------------------------- /fixtures/util/override_buildpack/go.tgz: -------------------------------------------------------------------------------- 1 | Fake binary data 2 | -------------------------------------------------------------------------------- /vendor/github.com/elazarl/goproxy/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | *.swp 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /.envrc: -------------------------------------------------------------------------------- 1 | export GOBIN=$(pwd)/.bin 2 | export PATH=$GOBIN:$PATH 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | /.bin/ 4 | go_buildpack*.zip 5 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/vendored/Procfile: -------------------------------------------------------------------------------- 1 | web: app 2 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/nltk/requirements.txt: -------------------------------------------------------------------------------- 1 | nltk==3.6.5 2 | 3 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/go.mod: -------------------------------------------------------------------------------- 1 | module myapp 2 | 3 | go 1.19 4 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/libbuildpack/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | examples/_* 3 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/Procfile: -------------------------------------------------------------------------------- 1 | web: go_app_with_glide_and_vendoring 2 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/python/requirements.txt: -------------------------------------------------------------------------------- 1 | ujson==5.4.0 2 | 3 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/ruby/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/switchblade/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/requirements.txt: -------------------------------------------------------------------------------- 1 | codespell==2.3.0 2 | -------------------------------------------------------------------------------- /fixtures/errors/unvendored_godep/Procfile: -------------------------------------------------------------------------------- 1 | web: go_app_with_dependencies 2 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go text eol=lf 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat 2 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.gitignore: -------------------------------------------------------------------------------- 1 | # Cover profiles 2 | *.out 3 | -------------------------------------------------------------------------------- /vendor/github.com/teris-io/shortid/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | vendor/ 3 | Gopkg.lock 4 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @cloudfoundry/wg-app-runtime-interfaces-buildpacks-go-approvers 2 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/dynatrace-env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export DT_HELLO=some-value 4 | -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/.gitattributes: -------------------------------------------------------------------------------- 1 | testdata/* linguist-vendored 2 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/absolute/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/full/path 2 | 3 | go 1.19 4 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/relative/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/full/path 2 | 3 | go 1.19 4 | -------------------------------------------------------------------------------- /fixtures/errors/godir/message/message.go: -------------------------------------------------------------------------------- 1 | package message 2 | 3 | const Hello = "hello, world!" 4 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/conda/environment.yml: -------------------------------------------------------------------------------- 1 | name: pydata_test 2 | dependencies: 3 | - ujson=1.35 4 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/ruxitagentproc.conf: -------------------------------------------------------------------------------- 1 | # some comment 2 | [testsection] 3 | testkey testvalue 4 | -------------------------------------------------------------------------------- /vendor/code.cloudfoundry.org/lager/package.go: -------------------------------------------------------------------------------- 1 | package lager // import "code.cloudfoundry.org/lager" 2 | -------------------------------------------------------------------------------- /vendor/github.com/sclevine/spec/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | *.coverprofile 4 | *.test 5 | *~ 6 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/conda/requirements.txt: -------------------------------------------------------------------------------- 1 | name: pydata_test 2 | dependencies: 3 | - units=0.07 4 | 5 | -------------------------------------------------------------------------------- /fixtures/util/override_buildpack/bin/compile: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Supply only buildpack" 3 | exit 1 4 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.test 3 | . 4 | .idea 5 | gomega.iml 6 | TODO 7 | .vscode -------------------------------------------------------------------------------- /vendor/github.com/kr/go-heroku-example/message/message.go: -------------------------------------------------------------------------------- 1 | package message 2 | 3 | const Hello = "hello, world!" 4 | -------------------------------------------------------------------------------- /bin/release: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # bin/release 3 | 4 | echo "$(cat /tmp/buildpack-release-step.yml)" 5 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/vendored/vendor/github.com/vendorlib/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/vendorlib 2 | 3 | 4 | -------------------------------------------------------------------------------- /fixtures/dep/simple/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/ZiCog/shiny-thing" 5 | -------------------------------------------------------------------------------- /fixtures/dep/no_lockfile/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/ZiCog/shiny-thing" 5 | -------------------------------------------------------------------------------- /fixtures/dep/vendored/Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | [[constraint]] 3 | branch = "master" 4 | name = "github.com/ZiCog/shiny-thing" 5 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/session.vim: -------------------------------------------------------------------------------- 1 | au BufWritePost *.go silent!make tags > /dev/null 2>&1 2 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Package internal contains some helpers. 2 | package internal 3 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | TODO 3 | tmp/**/* 4 | *.coverprofile 5 | .vscode 6 | .idea/ 7 | *.log 8 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.12.x 4 | - 1.13.x 5 | - master 6 | -------------------------------------------------------------------------------- /fixtures/brats/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go<%= version %>", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/default/ldflags/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go1.X", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/default/simple/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go1.X", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/.gitignore: -------------------------------------------------------------------------------- 1 | TAGS 2 | tags 3 | .*.swp 4 | tomlcheck/tomlcheck 5 | toml.test 6 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/doc.go: -------------------------------------------------------------------------------- 1 | // This package contains Win32 filesystem functionality. 2 | package fs 3 | -------------------------------------------------------------------------------- /fixtures/default/no_procfile/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go1.X", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/errors/go_version/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go99.99.99", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/go_toolchain/toolchain/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go1.X", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/godep/simple/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | pkg/ 3 | src/code.google.com/ 4 | src/github.com/ 5 | src/golang.org/ 6 | !Godeps/_workspace 7 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudfoundry/go-buildpack/HEAD/vendor/github.com/ulikunitz/xz/fox.xz -------------------------------------------------------------------------------- /fixtures/godep/wildcard_go_version/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go-online", 3 | "GoVersion": "go1.X", 4 | "Deps": [] 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/elazarl/goproxy/logger.go: -------------------------------------------------------------------------------- 1 | package goproxy 2 | 3 | type Logger interface { 4 | Printf(format string, v ...any) 5 | } 6 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/liboneagentproc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudfoundry/go-buildpack/HEAD/fixtures/util/dynatrace/liboneagentproc.so -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | *.{cmd,[cC][mM][dD]} text eol=crlf 3 | *.{bat,[bB][aA][tT]} text eol=crlf 4 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/vendored/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | pkg/ 3 | src/code.google.com/ 4 | src/github.com/ 5 | src/golang.org/ 6 | !vendor 7 | -------------------------------------------------------------------------------- /fixtures/glide/simple/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go_app_with_glide 2 | import: 3 | - package: github.com/ZiCog/shiny-thing 4 | subpackages: 5 | - foo 6 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/vendored/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/full/path 2 | 3 | require github.com/deckarep/golang-set v1.7.1 4 | 5 | go 1.19 6 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/ruby/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | 5 | PLATFORMS 6 | ruby 7 | 8 | DEPENDENCIES 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/lzma/fox.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudfoundry/go-buildpack/HEAD/vendor/github.com/ulikunitz/xz/lzma/fox.lzma -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.codespellignore: -------------------------------------------------------------------------------- 1 | ot 2 | fo 3 | te 4 | collison 5 | consequentially 6 | ans 7 | nam 8 | valu 9 | thirdparty 10 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/vendored/vendor/modules.txt: -------------------------------------------------------------------------------- 1 | # github.com/deckarep/golang-set v1.7.1 2 | ## explicit 3 | github.com/deckarep/golang-set 4 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox-check-none.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudfoundry/go-buildpack/HEAD/vendor/github.com/ulikunitz/xz/fox-check-none.xz -------------------------------------------------------------------------------- /fixtures/glide/vendored/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go_app_with_glide_and_vendoring 2 | import: 3 | - package: github.com/ZiCog/shiny-thing 4 | subpackages: 5 | - foo 6 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | 3 | *.exe 4 | 5 | # testing 6 | testdata 7 | 8 | # go workspaces 9 | go.work 10 | go.work.sum 11 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/unix2.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package internal 4 | 5 | func HasPrivilegesForSymlink() bool { 6 | return true 7 | } 8 | -------------------------------------------------------------------------------- /fixtures/default/ldflags/buildpack.yml: -------------------------------------------------------------------------------- 1 | --- 2 | go: 3 | ldflags: 4 | main.linker_flag: flag_linked_should_not_appear 5 | main.other_linker_flag: other_flag_linked 6 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.mailmap: -------------------------------------------------------------------------------- 1 | Chris Howey 2 | Nathan Youngman <4566+nathany@users.noreply.github.com> 3 | -------------------------------------------------------------------------------- /vendor/github.com/sclevine/spec/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.12.x 4 | - 1.13.x 5 | script: 6 | - test -z $(go fmt ./...) 7 | - go vet ./... 8 | - go test -v ./... 9 | -------------------------------------------------------------------------------- /vendor/github.com/vendorlib/vendorlib.go: -------------------------------------------------------------------------------- 1 | package vendorlib 2 | 3 | import "fmt" 4 | 5 | var A = 1 6 | 7 | func init() { 8 | fmt.Println("Init: a.A ==", A) 9 | } 10 | -------------------------------------------------------------------------------- /fixtures/default/vendored/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | pkg/ 3 | src/code.google.com/ 4 | src/github.com/ 5 | src/golang.org/ 6 | src/go_app_with_dependencies/Godeps/_workspace 7 | !vendor 8 | -------------------------------------------------------------------------------- /vendor/gopkg.in/tomb.v1/README.md: -------------------------------------------------------------------------------- 1 | Installation and usage 2 | ---------------------- 3 | 4 | See [gopkg.in/tomb.v1](https://gopkg.in/tomb.v1) for documentation and usage details. 5 | -------------------------------------------------------------------------------- /fixtures/brats/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/default/simple/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/godep/simple/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/godep/vendored/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/COMPATIBLE: -------------------------------------------------------------------------------- 1 | Compatible with TOML version 2 | [v0.4.0](https://github.com/toml-lang/toml/blob/v0.4.0/versions/en/toml-v0.4.0.md) 3 | 4 | -------------------------------------------------------------------------------- /fixtures/util/proxy/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/cloudfoundry/go-buildpack/fixtures/util/proxy 2 | 3 | go 1.19 4 | 5 | require github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4 6 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/switchblade/deployment.go: -------------------------------------------------------------------------------- 1 | package switchblade 2 | 3 | type Deployment struct { 4 | Name string 5 | ExternalURL string 6 | InternalURL string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | ID int 5 | Value interface{} 6 | } 7 | 8 | type NodeOrderedSet []Node 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/paketo-buildpacks/packit/v2/fs/doc.go: -------------------------------------------------------------------------------- 1 | // Package fs provides a set of filesystem helpers that can be useful when 2 | // developing Cloud Native Buildpacks. 3 | package fs 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/codes/README.md: -------------------------------------------------------------------------------- 1 | # Codes 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/codes)](https://pkg.go.dev/go.opentelemetry.io/otel/codes) 4 | -------------------------------------------------------------------------------- /fixtures/default/ldflags/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/default/no_procfile/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/errors/go_version/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/error_response_ext.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // Error returns the error message 4 | func (e ErrorResponse) Error() string { 5 | return e.Message 6 | } 7 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/baggage/README.md: -------------------------------------------------------------------------------- 1 | # Baggage 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/baggage)](https://pkg.go.dev/go.opentelemetry.io/otel/baggage) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/metric/README.md: -------------------------------------------------------------------------------- 1 | # Metric API 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/metric)](https://pkg.go.dev/go.opentelemetry.io/otel/metric) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/trace/README.md: -------------------------------------------------------------------------------- 1 | # Trace API 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/trace)](https://pkg.go.dev/go.opentelemetry.io/otel/trace) 4 | -------------------------------------------------------------------------------- /.gitallowed: -------------------------------------------------------------------------------- 1 | GO15VENDOREXPERIMENT 2 | HYDZZAEA 3 | ECCUEESTEGGYEHSHERRIESSPETTHEU\x00\x03EZ 4 | FIINFJJIFKLKFMSMFORO 5 | UVTWWNTZZAUAKRUGGAUK 6 | UMMIUN 7 | USSAUYRYUZZBVAATVCCTVDDRVEENVGGBVIIRVNNMVU 8 | -------------------------------------------------------------------------------- /fixtures/errors/unvendored_godep/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/go_toolchain/toolchain/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /fixtures/default/vendored/vendor/github.com/vendorlib/vendorlib.go: -------------------------------------------------------------------------------- 1 | package vendorlib 2 | 3 | import "fmt" 4 | 5 | var A = 1 6 | 7 | func init() { 8 | fmt.Println("Init: a.A ==", A) 9 | } 10 | -------------------------------------------------------------------------------- /fixtures/godep/wildcard_go_version/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | 3 | package winio 4 | 5 | //go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go ./*.go 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/ratelimiter/storage.go: -------------------------------------------------------------------------------- 1 | package ratelimiter 2 | 3 | type Storage interface { 4 | GetBucketFor(string) (*LeakyBucket, error) 5 | SetBucketFor(string, LeakyBucket) error 6 | } 7 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/attribute/README.md: -------------------------------------------------------------------------------- 1 | # Attribute 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/attribute)](https://pkg.go.dev/go.opentelemetry.io/otel/attribute) 4 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | Thumbs.db 3 | 4 | .tools/ 5 | venv/ 6 | .idea/ 7 | .vscode/ 8 | *.iml 9 | *.so 10 | coverage.* 11 | go.work 12 | go.work.sum 13 | 14 | gen/ 15 | -------------------------------------------------------------------------------- /vendor/github.com/ZiCog/shiny-thing/foo/bye.go: -------------------------------------------------------------------------------- 1 | package foo 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // Done says it has done something 8 | func Done() { 9 | fmt.Println("Bye from foo!") 10 | } 11 | 12 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/metric/noop/README.md: -------------------------------------------------------------------------------- 1 | # Metric Noop 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/metric/noop)](https://pkg.go.dev/go.opentelemetry.io/otel/metric/noop) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/propagation/README.md: -------------------------------------------------------------------------------- 1 | # Propagation 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/propagation)](https://pkg.go.dev/go.opentelemetry.io/otel/propagation) 4 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: ci generate clean 2 | 3 | ci: clean generate 4 | go test -race -v ./... 5 | 6 | generate: 7 | go generate . 8 | 9 | clean: 10 | rm -rf *_generated*.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.gitignore: -------------------------------------------------------------------------------- 1 | # go test -c output 2 | *.test 3 | *.test.exe 4 | 5 | # Output of go build ./cmd/fsnotify 6 | /fsnotify 7 | /fsnotify.exe 8 | 9 | /test/kqueue 10 | /test/a.out 11 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/make-docs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | pandoc -t html5 -f markdown -s --css=doc/md.css -o README.html README.md 5 | pandoc -t html5 -f markdown -s --css=doc/md.css -o TODO.html TODO.md 6 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/vendored/vendor/github.com/vendorlib/vendorlib.go: -------------------------------------------------------------------------------- 1 | package vendorlib 2 | 3 | import "fmt" 4 | 5 | var A = 1 6 | 7 | func init() { 8 | fmt.Println("Init: a.A ==", A) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/trace/embedded/README.md: -------------------------------------------------------------------------------- 1 | # Trace Embedded 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/trace/embedded)](https://pkg.go.dev/go.opentelemetry.io/otel/trace/embedded) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/metric/embedded/README.md: -------------------------------------------------------------------------------- 1 | # Metric Embedded 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/metric/embedded)](https://pkg.go.dev/go.opentelemetry.io/otel/metric/embedded) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/README.md: -------------------------------------------------------------------------------- 1 | # Semconv v1.20.0 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/semconv/v1.20.0)](https://pkg.go.dev/go.opentelemetry.io/otel/semconv/v1.20.0) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.26.0/README.md: -------------------------------------------------------------------------------- 1 | # Semconv v1.26.0 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/semconv/v1.26.0)](https://pkg.go.dev/go.opentelemetry.io/otel/semconv/v1.26.0) 4 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/vendored/go.sum: -------------------------------------------------------------------------------- 1 | github.com/deckarep/golang-set v1.7.1 h1:SCQV0S6gTtp6itiFrTqI+pfmJ4LN85S1YzhDf9rTHJQ= 2 | github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ= 3 | -------------------------------------------------------------------------------- /fixtures/brats/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/vendor/github.com/ZiCog/shiny-thing/bar/bye.go: -------------------------------------------------------------------------------- 1 | package bar 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // Done says it has done something 8 | func Done() { 9 | fmt.Println("Bye from bar") 10 | } 11 | 12 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/vendor/github.com/ZiCog/shiny-thing/foo/bye.go: -------------------------------------------------------------------------------- 1 | package foo 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // Done says it has done something 8 | func Done() { 9 | fmt.Println("Bye from foo!") 10 | } 11 | 12 | -------------------------------------------------------------------------------- /fixtures/godep/vendored/vendor/github.com/ZiCog/shiny-thing/foo/bye.go: -------------------------------------------------------------------------------- 1 | package foo 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // Done says it has done something 8 | func Done() { 9 | fmt.Println("Bye from foo!") 10 | } 11 | 12 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/fake_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "revision":1234567890, 3 | "properties": 4 | [ 5 | { 6 | "section":"fakesection", 7 | "key":"fakekey", 8 | "value":"fakevalue" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /fixtures/default/simple/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /vendor/github.com/Masterminds/semver/version_fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package semver 4 | 5 | func Fuzz(data []byte) int { 6 | if _, err := NewVersion(string(data)); err != nil { 7 | return 0 8 | } 9 | return 1 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/system_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || openbsd || netbsd || dragonfly 2 | 3 | package fsnotify 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY | unix.O_CLOEXEC 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/system_darwin.go: -------------------------------------------------------------------------------- 1 | //go:build darwin 2 | 3 | package fsnotify 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | // note: this constant is not defined on BSD 8 | const openMode = unix.O_EVTONLY | unix.O_CLOEXEC 9 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/.cirrus.yml: -------------------------------------------------------------------------------- 1 | task: 2 | name: FreeBSD 3 | freebsd_instance: 4 | image_family: freebsd-12-2 5 | install_script: pkg install -y go 6 | script: | 7 | go build 8 | go test -v -race -timeout 2m ./... 9 | -------------------------------------------------------------------------------- /fixtures/default/vendored/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/errors/go_version/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/go_toolchain/toolchain/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/vendored/vendor/github.com/deckarep/golang-set/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8 5 | - 1.9 6 | - tip 7 | 8 | script: 9 | - go test -race ./... 10 | - go test -bench=. 11 | 12 | -------------------------------------------------------------------------------- /src/go/hooks/dynatrace.go: -------------------------------------------------------------------------------- 1 | package hooks 2 | 3 | import ( 4 | "github.com/cloudfoundry/libbuildpack" 5 | "github.com/Dynatrace/libbuildpack-dynatrace" 6 | ) 7 | 8 | func init() { 9 | libbuildpack.AddHook(dynatrace.NewHook("go", "process")) 10 | } -------------------------------------------------------------------------------- /fixtures/godep/wildcard_go_version/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/mod/simple/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | ``` 10 | $ go build site.go 11 | $ PORT=3000 ./site 12 | ``` 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/checkpoint/list.go: -------------------------------------------------------------------------------- 1 | package checkpoint 2 | 3 | // Summary represents the details of a checkpoint when listing endpoints. 4 | type Summary struct { 5 | // Name is the name of the checkpoint. 6 | Name string 7 | } 8 | -------------------------------------------------------------------------------- /fixtures/default/ldflags/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | ``` 10 | $ go build site.go 11 | $ PORT=3000 ./site 12 | ``` 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/runtime/gen.go: -------------------------------------------------------------------------------- 1 | //go:generate protoc --gogofaster_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto 2 | 3 | package runtime // import "github.com/docker/docker/api/types/swarm/runtime" 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/attribute/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package attribute provides key and value attributes. 5 | package attribute // import "go.opentelemetry.io/otel/attribute" 6 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/vendored/README.md: -------------------------------------------------------------------------------- 1 | go-online 2 | ========= 3 | 4 | Sample go web app using the GoLang example: http://golang.org/doc/articles/wiki/final.go 5 | 6 | to run 7 | ====== 8 | 9 | $ go build site.go 10 | $ PORT=3000 ./site 11 | -------------------------------------------------------------------------------- /fixtures/errors/godir/worker/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/kr/go-heroku-example/message" 6 | "time" 7 | ) 8 | 9 | func main() { 10 | for { 11 | fmt.Println(message.Hello) 12 | time.Sleep(10 * time.Second) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/vendor/github.com/ZiCog/shiny-thing/shiny-thing.go: -------------------------------------------------------------------------------- 1 | /* 2 | A package comment. 3 | Only present in one file of the package. 4 | */ 5 | package main 6 | 7 | import "fmt" 8 | 9 | func main() { 10 | fmt.Println("Hello, 世界") 11 | } 12 | 13 | -------------------------------------------------------------------------------- /src/go/godep/godep.go: -------------------------------------------------------------------------------- 1 | package godep 2 | 3 | type Godep struct { 4 | ImportPath string `json:"ImportPath"` 5 | GoVersion string `json:"GoVersion"` 6 | Packages []string `json:"Packages"` 7 | WorkspaceExists bool `json:"WorkspaceExists"` 8 | } 9 | -------------------------------------------------------------------------------- /fixtures/godep/simple/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go_dependencies", 3 | "GoVersion": "go1.X", 4 | "Deps": [ 5 | { 6 | "ImportPath": "github.com/ZiCog/shiny-thing/foo", 7 | "Rev": "e9e19444ccf5362bba846441c4700a49a94b8118" 8 | } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/go/hooks/hooks_suite_test.go: -------------------------------------------------------------------------------- 1 | package hooks_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestHooks(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Hooks Suite") 13 | } -------------------------------------------------------------------------------- /fixtures/godep/vendored/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "with_dependencies", 3 | "GoVersion": "go1.X", 4 | "Deps": [ 5 | { 6 | "ImportPath": "github.com/ZiCog/shiny-thing/foo", 7 | "Rev": "e9e19444ccf5362bba846441c4700a49a94b8118" 8 | } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "technologies": { 3 | "process": { 4 | "linux-x86-64": [ 5 | { 6 | "path": "agent/lib64/liboneagentproc.so", 7 | "binarytype": "primary" 8 | } 9 | ] 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/ZiCog/shiny-thing/foo/hello.go: -------------------------------------------------------------------------------- 1 | /* 2 | The hello package does something interesting 3 | */ 4 | package foo 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | // Do does something with nothing 11 | func Do() { 12 | fmt.Println("Hello from foo!") 13 | } 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/errors.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | type errInvalidParameter struct{ error } 4 | 5 | func (e *errInvalidParameter) InvalidParameter() {} 6 | 7 | func (e *errInvalidParameter) Unwrap() error { 8 | return e.error 9 | } 10 | -------------------------------------------------------------------------------- /src/go/supply/supply_suite_test.go: -------------------------------------------------------------------------------- 1 | package supply_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestSupply(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Supply Suite") 13 | } 14 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/vendor/github.com/ZiCog/shiny-thing/bar/hello.go: -------------------------------------------------------------------------------- 1 | /* 2 | The bar package implements bar functionality 3 | */ 4 | package bar 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | // Do does something 11 | func Do() { 12 | fmt.Println("Hello from bar") 13 | } 14 | 15 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/modules.txt: -------------------------------------------------------------------------------- 1 | # github.com/BurntSushi/toml v0.3.1 2 | ## explicit 3 | github.com/BurntSushi/toml 4 | # github.com/satori/go.uuid v1.2.0 5 | ## explicit 6 | github.com/satori/go.uuid 7 | # gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c 8 | ## explicit; go 1.11 9 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.mailmap: -------------------------------------------------------------------------------- 1 | Aaron Lehmann 2 | Derek McGowan 3 | Stephen J Day 4 | Haibing Zhou 5 | -------------------------------------------------------------------------------- /fixtures/errors/unvendored_godep/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "go_app_with_dependencies", 3 | "GoVersion": "go1.X", 4 | "Deps": [ 5 | { 6 | "ImportPath": "github.com/ZiCog/shiny-thing/foo", 7 | "Rev": "e9e19444ccf5362bba846441c4700a49a94b8118" 8 | } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/go/finalize/finalize_suite_test.go: -------------------------------------------------------------------------------- 1 | package finalize_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFinalize(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Finalize Suite") 13 | } 14 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/vendor/github.com/ZiCog/shiny-thing/foo/hello.go: -------------------------------------------------------------------------------- 1 | /* 2 | The hello package does something interesting 3 | */ 4 | package foo 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | // Do does something with nothing 11 | func Do() { 12 | fmt.Println("Hello from foo!") 13 | } 14 | 15 | -------------------------------------------------------------------------------- /fixtures/godep/vendored/vendor/github.com/ZiCog/shiny-thing/foo/hello.go: -------------------------------------------------------------------------------- 1 | /* 2 | The hello package does something interesting 3 | */ 4 | package foo 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | // Do does something with nothing 11 | func Do() { 12 | fmt.Println("Hello from foo!") 13 | } 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/libbuildpack/cutlass/constants.go: -------------------------------------------------------------------------------- 1 | package cutlass 2 | 3 | import ( 4 | "bytes" 5 | "io" 6 | ) 7 | 8 | var ( 9 | DefaultMemory string 10 | DefaultDisk string 11 | Cached bool 12 | DefaultStdoutStderr io.Writer = &bytes.Buffer{} 13 | ) 14 | -------------------------------------------------------------------------------- /fixtures/glide/simple/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 77b39ff0b1b7bc865505971851c3c60476276e186b961736e9fcd9204cdc54ba 2 | updated: 2016-07-01T14:33:51.220907438-04:00 3 | imports: 4 | - name: github.com/ZiCog/shiny-thing 5 | version: e9e19444ccf5362bba846441c4700a49a94b8118 6 | subpackages: 7 | - foo 8 | devImports: [] 9 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/glide.lock: -------------------------------------------------------------------------------- 1 | hash: 000d8e517762e36a70585c4e7ff02be03012d0a8248f7bb44e9daed71a0fb88d 2 | updated: 2016-07-01T14:34:55.750858863-04:00 3 | imports: 4 | - name: github.com/ZiCog/shiny-thing 5 | version: e9e19444ccf5362bba846441c4700a49a94b8118 6 | subpackages: 7 | - foo 8 | devImports: [] 9 | -------------------------------------------------------------------------------- /fixtures/godep/simple/Godeps/_workspace/src/github.com/ZiCog/shiny-thing/foo/hello.go: -------------------------------------------------------------------------------- 1 | /* 2 | The hello package does something interesting 3 | */ 4 | package foo 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | // Do does something with nothing 11 | func Do() { 12 | fmt.Println("Hello from foo!") 13 | } 14 | 15 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/switchblade/internal/cloudfoundry/executable.go: -------------------------------------------------------------------------------- 1 | package cloudfoundry 2 | 3 | import "github.com/paketo-buildpacks/packit/v2/pexec" 4 | 5 | //go:generate faux --interface Executable --output fakes/executable.go 6 | type Executable interface { 7 | Execute(pexec.Execution) error 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Derek McGowan (@dmcgowan) 2 | Stephen Day (@stevvooe) 3 | Vincent Batts (@vbatts) 4 | Akihiro Suda (@AkihiroSuda) 5 | Sebastiaan van Stijn (@thaJeztah) 6 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/version.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otel // import "go.opentelemetry.io/otel" 5 | 6 | // Version is the current release version of OpenTelemetry in use. 7 | func Version() string { 8 | return "1.32.0" 9 | } 10 | -------------------------------------------------------------------------------- /fixtures/mod/simple/go.mod: -------------------------------------------------------------------------------- 1 | module go-online 2 | 3 | // go: no requirements found in Godeps/Godeps.json 4 | // 5 | 6 | require ( 7 | github.com/BurntSushi/toml v0.3.1 8 | github.com/satori/go.uuid v1.2.0 9 | ) 10 | 11 | require gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect 12 | 13 | go 1.19 14 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/go.mod: -------------------------------------------------------------------------------- 1 | module go-online 2 | 3 | // go: no requirements found in Godeps/Godeps.json 4 | // 5 | 6 | require ( 7 | github.com/BurntSushi/toml v0.3.1 8 | github.com/satori/go.uuid v1.2.0 9 | ) 10 | 11 | require gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect 12 | 13 | go 1.19 14 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/libbuildpack/README.md: -------------------------------------------------------------------------------- 1 | # libbuildpack 2 | 3 | A library for writing buildpacks 4 | 5 | ## Development 6 | 7 | If you want to change mocks and thus run `go:generate` you will need 8 | 9 | ``` 10 | go get github.com/golang/mock/gomock 11 | go get github.com/golang/mock/mockgen 12 | ``` 13 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | We follow the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). 4 | 5 | Please contact the [CNCF Code of Conduct Committee](mailto:conduct@cncf.io) in order to report violations of the Code of Conduct. 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/client_windows.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | // DefaultDockerHost defines OS-specific default host if the DOCKER_HOST 4 | // (EnvOverrideHost) environment variable is unset or empty. 5 | const DefaultDockerHost = "npipe:////./pipe/docker_engine" 6 | -------------------------------------------------------------------------------- /fixtures/errors/unvendored_godep/package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #cd ../.. 4 | 5 | # remove github dep cache 6 | #rm -rf src/github.com 7 | 8 | export GOPATH=$PWD 9 | export PATH=$GOPATH/bin:$PATH 10 | 11 | go get github.com/tools/godep 12 | godep get github.com/ZiCog/shiny-thing/foo 13 | 14 | cd - 15 | 16 | go install 17 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | Comments (at Discussions), Issues and PRs are always welcome. In the case of issues, 3 | code examples make it easier to reproduce the problem. In the case of PRs add tests 4 | if applicable so we make sure nothing breaks for people using the library on different 5 | OSes. 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-units/circle.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | post: 3 | # install golint 4 | - go get golang.org/x/lint/golint 5 | 6 | test: 7 | pre: 8 | # run analysis before tests 9 | - go vet ./... 10 | - test -z "$(golint ./... | tee /dev/stderr)" 11 | - test -z "$(gofmt -s -l . | tee /dev/stderr)" 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "1.14.x" 15 | - "tip" 16 | 17 | go_import_path: gopkg.in/yaml.v2 18 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.1 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | install: 11 | - go install ./... 12 | - go get github.com/BurntSushi/toml-test 13 | script: 14 | - export PATH="$PATH:$HOME/gopath/bin" 15 | - make test 16 | -------------------------------------------------------------------------------- /fixtures/util/proxy/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | "net/http" 7 | "os" 8 | 9 | "github.com/elazarl/goproxy" 10 | ) 11 | 12 | func main() { 13 | proxy := goproxy.NewProxyHttpServer() 14 | proxy.Verbose = true 15 | log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", os.Getenv("PORT")), proxy)) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/client_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package client // import "github.com/docker/docker/client" 4 | 5 | // DefaultDockerHost defines OS-specific default host if the DOCKER_HOST 6 | // (EnvOverrideHost) environment variable is unset or empty. 7 | const DefaultDockerHost = "unix:///var/run/docker.sock" 8 | -------------------------------------------------------------------------------- /vendor/github.com/paketo-buildpacks/packit/v2/fs/is_empty_dir.go: -------------------------------------------------------------------------------- 1 | package fs 2 | 3 | import "os" 4 | 5 | // IsEmptyDir checks to see if a directory exists and is empty. 6 | func IsEmptyDir(path string) bool { 7 | contents, err := os.ReadDir(path) 8 | if err != nil { 9 | return false 10 | } 11 | 12 | return len(contents) == 0 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Dynatrace/libbuildpack-dynatrace/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # vim session file 15 | Session.vim 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/volume/volume_update.go: -------------------------------------------------------------------------------- 1 | package volume // import "github.com/docker/docker/api/types/volume" 2 | 3 | // UpdateOptions is configuration to update a Volume with. 4 | type UpdateOptions struct { 5 | // Spec is the ClusterVolumeSpec to update the volume to. 6 | Spec *ClusterVolumeSpec `json:"Spec,omitempty"` 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "stack": "cflinuxfs4", 3 | "oses": [ 4 | "linux" 5 | ], 6 | "integration": { 7 | "harness": "switchblade", 8 | "matrix": [ 9 | { 10 | "cached": false, 11 | "parallel": true 12 | }, 13 | { 14 | "cached": true, 15 | "parallel": true 16 | } 17 | ] 18 | } 19 | } -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Vulnerability 4 | 5 | The maintainers take security seriously. If you discover a security issue, please bring it to their attention right away! 6 | 7 | Please DO NOT file a public issue, instead send your report privately to cncf-distribution-security@lists.cncf.io. 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/specrunner/random_id.go: -------------------------------------------------------------------------------- 1 | package specrunner 2 | 3 | import ( 4 | "crypto/rand" 5 | "fmt" 6 | ) 7 | 8 | func randomID() string { 9 | b := make([]byte, 8) 10 | _, err := rand.Read(b) 11 | if err != nil { 12 | return "" 13 | } 14 | return fmt.Sprintf("%x-%x-%x-%x", b[0:2], b[2:4], b[4:6], b[6:8]) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.codespellrc: -------------------------------------------------------------------------------- 1 | # https://github.com/codespell-project/codespell 2 | [codespell] 3 | builtin = clear,rare,informal 4 | check-filenames = 5 | check-hidden = 6 | ignore-words = .codespellignore 7 | interactive = 1 8 | skip = .git,go.mod,go.sum,go.work,go.work.sum,semconv,venv,.tools 9 | uri-ignore-words-list = * 10 | write = 11 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.lycheeignore: -------------------------------------------------------------------------------- 1 | http://localhost 2 | http://jaeger-collector 3 | https://github.com/open-telemetry/opentelemetry-go/milestone/ 4 | https://github.com/open-telemetry/opentelemetry-go/projects 5 | file:///home/runner/work/opentelemetry-go/opentelemetry-go/libraries 6 | file:///home/runner/work/opentelemetry-go/opentelemetry-go/manual 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/stdr/README.md: -------------------------------------------------------------------------------- 1 | # Minimal Go logging using logr and Go's standard library 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/github.com/go-logr/stdr.svg)](https://pkg.go.dev/github.com/go-logr/stdr) 4 | 5 | This package implements the [logr interface](https://github.com/go-logr/logr) 6 | in terms of Go's standard log package(https://pkg.go.dev/log). 7 | -------------------------------------------------------------------------------- /vendor/github.com/teris-io/shortid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - amd64 4 | - ppc64le 5 | go: 6 | - 1.8 7 | 8 | before_install: 9 | - go get 10 | - touch coverage.txt 11 | - pip install --user codecov 12 | 13 | script: 14 | - go test -coverprofile=coverage.txt -covermode=atomic ./... 15 | 16 | after_success: 17 | - codecov 18 | 19 | 20 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/exception.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 5 | 6 | const ( 7 | // ExceptionEventName is the name of the Span event representing an exception. 8 | ExceptionEventName = "exception" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.26.0/exception.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.26.0" 5 | 6 | const ( 7 | // ExceptionEventName is the name of the Span event representing an exception. 8 | ExceptionEventName = "exception" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/code_location.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type CodeLocation struct { 8 | FileName string 9 | LineNumber int 10 | FullStackTrace string 11 | } 12 | 13 | func (codeLocation CodeLocation) String() string { 14 | return fmt.Sprintf("%s:%d", codeLocation.FileName, codeLocation.LineNumber) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/http.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 5 | 6 | // HTTP scheme attributes. 7 | var ( 8 | HTTPSchemeHTTP = HTTPSchemeKey.String("http") 9 | HTTPSchemeHTTPS = HTTPSchemeKey.String("https") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/github.com/paketo-buildpacks/packit/v2/vacation/vacation.go: -------------------------------------------------------------------------------- 1 | // Package vacation provides a set of functions that enable input stream 2 | // decompression logic from several popular decompression formats. This allows 3 | // from decompression from either a file or any other byte stream, which is 4 | // useful for decompressing files that are being downloaded. 5 | package vacation 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | 9 | package idna 10 | 11 | const transitionalLookup = true 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/interface_stable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | // APIClient is an interface that clients that talk with a docker server must implement. 4 | type APIClient interface { 5 | CommonAPIClient 6 | apiClientExperimental 7 | } 8 | 9 | // Ensure that Client always implements APIClient. 10 | var _ APIClient = &Client{} 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/baggage/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package baggage provides functionality for storing and retrieving 6 | baggage items in Go context. For propagating the baggage, see the 7 | go.opentelemetry.io/otel/propagation package. 8 | */ 9 | package baggage // import "go.opentelemetry.io/otel/baggage" 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - bodyclose 4 | - dupword # Checks for duplicate words in the source code 5 | - gofmt 6 | - goimports 7 | - ineffassign 8 | - misspell 9 | - revive 10 | - staticcheck 11 | - unconvert 12 | - unused 13 | - vet 14 | disable: 15 | - errcheck 16 | 17 | run: 18 | deadline: 2m 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/service_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ServiceRemove kills and removes a service. 6 | func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error { 7 | resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil) 8 | defer ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/output_interceptor.go: -------------------------------------------------------------------------------- 1 | package remote 2 | 3 | import "os" 4 | 5 | /* 6 | The OutputInterceptor is used by the ForwardingReporter to 7 | intercept and capture all stdin and stderr output during a test run. 8 | */ 9 | type OutputInterceptor interface { 10 | StartInterceptingOutput() error 11 | StopInterceptingAndReturnOutput() (string, error) 12 | StreamTo(*os.File) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /fixtures/errors/godir/web.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "hello, heroku") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/v4/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | # IDEs 25 | .idea/ 26 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // NetworkRemove removes an existent network from the docker host. 6 | func (cli *Client) NetworkRemove(ctx context.Context, networkID string) error { 7 | resp, err := cli.delete(ctx, "/networks/"+networkID, nil, nil) 8 | defer ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/elazarl/goproxy/all.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | go test || exit 4 | for action in $@; do go $action; done 5 | 6 | mkdir -p bin 7 | find regretable examples/* ext/* -maxdepth 0 -type d | while read d; do 8 | (cd $d 9 | go build -o ../../bin/$(basename $d) 10 | find *_test.go -maxdepth 0 2>/dev/null|while read f;do 11 | for action in $@; do go $action; done 12 | go test 13 | break 14 | done) 15 | done 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_set.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // PluginSet modifies settings for an existing plugin 8 | func (cli *Client) PluginSet(ctx context.Context, name string, args []string) error { 9 | resp, err := cli.post(ctx, "/plugins/"+name+"/set", nil, args, nil) 10 | ensureReaderClosed(resp) 11 | return err 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/Makefile: -------------------------------------------------------------------------------- 1 | install: 2 | go install ./... 3 | 4 | test: install 5 | go test -v 6 | toml-test toml-test-decoder 7 | toml-test -encoder toml-test-encoder 8 | 9 | fmt: 10 | gofmt -w *.go */*.go 11 | colcheck *.go */*.go 12 | 13 | tags: 14 | find ./ -name '*.go' -print0 | xargs -0 gotags > TAGS 15 | 16 | push: 17 | git push origin master 18 | git push github master 19 | 20 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/libbuildpack/cutlass/logger.go: -------------------------------------------------------------------------------- 1 | package cutlass 2 | 3 | import ( 4 | "os" 5 | 6 | "code.cloudfoundry.org/lager" 7 | ) 8 | 9 | var DefaultLogger = NewLogger() 10 | 11 | func NewLogger() lager.Logger { 12 | logger := lager.NewLogger("cutlass") 13 | if os.Getenv("CUTLASS_DEBUG") != "" { 14 | logger.RegisterSink(lager.NewWriterSink(os.Stderr, lager.DEBUG)) 15 | } 16 | 17 | return logger 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/error_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ErrorResponse Represents an error. 7 | // swagger:model ErrorResponse 8 | type ErrorResponse struct { 9 | 10 | // The error message. 11 | // Required: true 12 | Message string `json:"message"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package otelhttp provides an http.Handler and functions that are intended 5 | // to be used to add tracing by wrapping existing handlers (with Handler) and 6 | // routes WithRouteTag. 7 | package otelhttp // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/vendored/vendor/github.com/deckarep/golang-set/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/nodejs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "go_calls_nodejs", 3 | "version": "0.0.0", 4 | "description": "go app that calls nodejs", 5 | "main": "server.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "BSD-2-Clause", 11 | "dependencies": { 12 | "log": "^1.4.0" 13 | }, 14 | "engines": { 15 | "node": "~>20" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/leafnodes/interfaces.go: -------------------------------------------------------------------------------- 1 | package leafnodes 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/types" 5 | ) 6 | 7 | type BasicNode interface { 8 | Type() types.SpecComponentType 9 | Run() (types.SpecState, types.SpecFailure) 10 | CodeLocation() types.CodeLocation 11 | } 12 | 13 | type SubjectNode interface { 14 | BasicNode 15 | 16 | Text() string 17 | Flag() types.FlagType 18 | Samples() int 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | 3 | TODO.html 4 | README.html 5 | 6 | lzma/writer.txt 7 | lzma/reader.txt 8 | 9 | cmd/gxz/gxz 10 | cmd/xb/xb 11 | 12 | # test executables 13 | *.test 14 | 15 | # profile files 16 | *.out 17 | 18 | # vim swap file 19 | .*.swp 20 | 21 | # executables on windows 22 | *.exe 23 | 24 | # default compression test file 25 | enwik8* 26 | 27 | # file generated by example 28 | example.xz -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/simple/app/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/switchblade/internal/cloudfoundry/deinitialize.go: -------------------------------------------------------------------------------- 1 | package cloudfoundry 2 | 3 | // This is noop functionality for the time being to reflect the docker structure 4 | 5 | type DeinitializePhase interface { 6 | Run() error 7 | } 8 | 9 | type Deinitialize struct{} 10 | 11 | func NewDeinitialize() Deinitialize { 12 | return Deinitialize{} 13 | } 14 | 15 | func (d Deinitialize) Run() error { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/wait_exit_error.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // WaitExitError container waiting error, if any 7 | // swagger:model WaitExitError 8 | type WaitExitError struct { 9 | 10 | // Details of an error 11 | Message string `json:"Message,omitempty"` 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_join.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/swarm" 7 | ) 8 | 9 | // SwarmJoin joins the swarm. 10 | func (cli *Client) SwarmJoin(ctx context.Context, req swarm.JoinRequest) error { 11 | resp, err := cli.post(ctx, "/swarm/join", nil, req, nil) 12 | ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/absolute/cmd/app/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | } 21 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/relative/cmd/app/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | } 21 | -------------------------------------------------------------------------------- /fixtures/util/override_buildpack/override.yml: -------------------------------------------------------------------------------- 1 | go: 2 | default_versions: 3 | - name: go 4 | version: 1.8.99 5 | dependencies: 6 | - name: go 7 | version: 1.8.99 8 | uri: https://buildpacks.cloudfoundry.org/dependencies/go/go1.8.99.linux-amd64.tar.gz 9 | file: BUILDPACK_DIR/go.tgz 10 | sha256: 062d906c87839d03b243e2821e10653c89b4c92878bfe2bf995dec231e117bfc 11 | cf_stacks: 12 | - cflinuxfs3 13 | - cflinuxfs4 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_unpause.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ContainerUnpause resumes the process execution within a container 6 | func (cli *Client) ContainerUnpause(ctx context.Context, containerID string) error { 7 | resp, err := cli.post(ctx, "/containers/"+containerID+"/unpause", nil, nil, nil) 8 | ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /fixtures/default/builtin/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", printFoo) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | var foo = 1 19 | 20 | func printFoo(res http.ResponseWriter, req *http.Request) { 21 | fmt.Fprintln(res, "foo: ", &foo) 22 | } 23 | -------------------------------------------------------------------------------- /fixtures/default/single_file/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("single file app listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "simple apps are good") 20 | } 21 | -------------------------------------------------------------------------------- /fixtures/default/symlink_dir/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("single file app listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "simple apps are good") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/change_type.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ChangeType Kind of change 7 | // 8 | // Can be one of: 9 | // 10 | // - `0`: Modified ("C") 11 | // - `1`: Added ("A") 12 | // - `2`: Deleted ("D") 13 | // 14 | // swagger:model ChangeType 15 | type ChangeType uint8 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/id_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // IDResponse Response to an API call that returns just an Id 7 | // swagger:model IdResponse 8 | type IDResponse struct { 9 | 10 | // The id of the newly created object. 11 | // Required: true 12 | ID string `json:"Id"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/golang/mock/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoMock authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Alex Reece 12 | Google Inc. 13 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/codes/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package codes defines the canonical error codes used by OpenTelemetry. 6 | 7 | It conforms to [the OpenTelemetry 8 | specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.20.0/specification/trace/api.md#set-status). 9 | */ 10 | package codes // import "go.opentelemetry.io/otel/codes" 11 | -------------------------------------------------------------------------------- /fixtures/errors/no_gopackagename/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("single file app listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "simple apps are good") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/service_update_response.go: -------------------------------------------------------------------------------- 1 | package swarm 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ServiceUpdateResponse service update response 7 | // swagger:model ServiceUpdateResponse 8 | type ServiceUpdateResponse struct { 9 | 10 | // Optional warning messages 11 | Warnings []string `json:"Warnings"` 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_pause.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ContainerPause pauses the main process of a given container without terminating it. 6 | func (cli *Client) ContainerPause(ctx context.Context, containerID string) error { 7 | resp, err := cli.post(ctx, "/containers/"+containerID+"/pause", nil, nil, nil) 8 | ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/paketo-buildpacks/packit/v2/fs/exists.go: -------------------------------------------------------------------------------- 1 | package fs 2 | 3 | import ( 4 | "errors" 5 | "os" 6 | ) 7 | 8 | // Exists returns true if a file or directory at the given path is present and false otherwise. 9 | func Exists(path string) (bool, error) { 10 | _, err := os.Stat(path) 11 | if err != nil { 12 | if errors.Is(err, os.ErrNotExist) { 13 | return false, nil 14 | } 15 | return false, err 16 | } 17 | return true, nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/internal_logging.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otel // import "go.opentelemetry.io/otel" 5 | 6 | import ( 7 | "github.com/go-logr/logr" 8 | 9 | "go.opentelemetry.io/otel/internal/global" 10 | ) 11 | 12 | // SetLogger configures the logger used internally to opentelemetry. 13 | func SetLogger(logger logr.Logger) { 14 | global.SetLogger(logger) 15 | } 16 | -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE: -------------------------------------------------------------------------------- 1 | Thanks for contributing to the buildpack. To speed up the process of reviewing your pull request please provide us with: 2 | 3 | * A short explanation of the proposed change: 4 | 5 | * An explanation of the use cases your change solves 6 | 7 | * [ ] I have viewed signed and have submitted the Contributor License Agreement 8 | 9 | * [ ] I have made this pull request to the `master` branch 10 | 11 | * [ ] I have added an integration test 12 | -------------------------------------------------------------------------------- /fixtures/godep/vendored/package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #cd ../.. 4 | 5 | # remove github dep cache 6 | #rm -rf src/github.com 7 | 8 | export GOPATH=$PWD 9 | export PATH=$GOPATH/bin:$PATH 10 | 11 | go get github.com/tools/godep 12 | godep get github.com/ZiCog/shiny-thing/foo 13 | 14 | cd - 15 | 16 | # remove workspace cache 17 | rm -rf Godeps/_workspace 18 | rm -rf vendor 19 | 20 | go install 21 | 22 | mkdir -p vendor 23 | cp -r ../github.com vendor/github.com 24 | -------------------------------------------------------------------------------- /fixtures/util/override_buildpack/bin/supply: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euo pipefail 3 | 4 | BUILD_DIR=$1 5 | CACHE_DIR=$2 6 | DEPS_DIR=$3 7 | DEPS_IDX=$4 8 | 9 | export BUILDPACK_DIR=`dirname $(readlink -f ${BASH_SOURCE%/*})` 10 | 11 | echo "-----> OverrideYML Buildpack" 12 | 13 | echo " Copy $BUILDPACK_DIR/override.yml to $DEPS_DIR/$DEPS_IDX/override.yml" 14 | sed "s#BUILDPACK_DIR#$BUILDPACK_DIR#g" "$BUILDPACK_DIR/override.yml" > "$DEPS_DIR/$DEPS_IDX/override.yml" 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/swagger-gen.yaml: -------------------------------------------------------------------------------- 1 | 2 | layout: 3 | models: 4 | - name: definition 5 | source: asset:model 6 | target: "{{ joinFilePath .Target .ModelPackage }}" 7 | file_name: "{{ (snakize (pascalize .Name)) }}.go" 8 | operations: 9 | - name: handler 10 | source: asset:serverOperation 11 | target: "{{ joinFilePath .Target .APIPackage .Package }}" 12 | file_name: "{{ (snakize (pascalize .Name)) }}.go" 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_unlock.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/swarm" 7 | ) 8 | 9 | // SwarmUnlock unlocks locked swarm. 10 | func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error { 11 | serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) 12 | ensureReaderClosed(serverResp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/docs.go: -------------------------------------------------------------------------------- 1 | // Package httpsnoop provides an easy way to capture http related metrics (i.e. 2 | // response time, bytes written, and http status code) from your application's 3 | // http.Handlers. 4 | // 5 | // Doing this requires non-trivial wrapping of the http.ResponseWriter 6 | // interface, which is also exposed for users interested in a more low-level 7 | // API. 8 | package httpsnoop 9 | 10 | //go:generate go run codegen/main.go 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /fixtures/godep/simple/package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd ../.. 4 | 5 | # remove github dep cache 6 | rm -rf src/github.com 7 | 8 | export GOPATH=$PWD 9 | export PATH=$GOPATH/bin:$PATH 10 | 11 | go get github.com/tools/godep 12 | godep get github.com/ZiCog/shiny-thing/foo 13 | 14 | cd - 15 | 16 | # remove workspace cache 17 | rm -rf Godeps/_workspace 18 | 19 | 20 | go install 21 | 22 | mkdir -p Godeps/_workspace/src 23 | cp -r ../github.com Godeps/_workspace/src/github.com -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/attributes_slice.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "encoding/xml" 5 | "strings" 6 | ) 7 | 8 | type attributesSlice []xml.Attr 9 | 10 | func (attrs attributesSlice) Len() int { return len(attrs) } 11 | func (attrs attributesSlice) Less(i, j int) bool { 12 | return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1 13 | } 14 | func (attrs attributesSlice) Swap(i, j int) { attrs[i], attrs[j] = attrs[j], attrs[i] } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /.github/workflows/synchronize-labels.yml: -------------------------------------------------------------------------------- 1 | name: Synchronize Labels 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | paths: 8 | - .github/labels.yml 9 | workflow_dispatch: {} 10 | jobs: 11 | synchronize: 12 | name: Synchronize Labels 13 | runs-on: 14 | - ubuntu-22.04 15 | steps: 16 | - uses: actions/checkout@v4 17 | - uses: micnncim/action-label-syncer@v1 18 | env: 19 | GITHUB_TOKEN: ${{ github.token }} 20 | -------------------------------------------------------------------------------- /fixtures/dep/simple/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | 8 | "github.com/ZiCog/shiny-thing/foo" 9 | ) 10 | 11 | func main() { 12 | foo.Do() 13 | http.HandleFunc("/", hello) 14 | fmt.Println("listening...") 15 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 16 | if err != nil { 17 | panic(err) 18 | } 19 | } 20 | 21 | func hello(res http.ResponseWriter, req *http.Request) { 22 | fmt.Fprintln(res, "go, world") 23 | } 24 | -------------------------------------------------------------------------------- /fixtures/dep/vendored/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | 8 | "github.com/ZiCog/shiny-thing/foo" 9 | ) 10 | 11 | func main() { 12 | foo.Do() 13 | http.HandleFunc("/", hello) 14 | fmt.Println("listening...") 15 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 16 | if err != nil { 17 | panic(err) 18 | } 19 | } 20 | 21 | func hello(res http.ResponseWriter, req *http.Request) { 22 | fmt.Fprintln(res, "go, world") 23 | } 24 | -------------------------------------------------------------------------------- /fixtures/glide/simple/web.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/ZiCog/shiny-thing/foo" 6 | "net/http" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | foo.Do() 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | fmt.Fprintln(res, "hello, world") 22 | } 23 | -------------------------------------------------------------------------------- /fixtures/glide/vendored/web.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/ZiCog/shiny-thing/foo" 6 | "net/http" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | foo.Do() 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | fmt.Fprintln(res, "hello, world") 22 | } 23 | -------------------------------------------------------------------------------- /fixtures/godep/simple/web.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/ZiCog/shiny-thing/foo" 6 | "net/http" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | foo.Do() 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | fmt.Fprintln(res, "hello, world") 22 | } 23 | -------------------------------------------------------------------------------- /fixtures/godep/vendored/web.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/ZiCog/shiny-thing/foo" 6 | "net/http" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | foo.Do() 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | fmt.Fprintln(res, "hello, world") 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/config_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ConfigRemove removes a config. 6 | func (cli *Client) ConfigRemove(ctx context.Context, id string) error { 7 | if err := cli.NewVersionError(ctx, "1.30", "config remove"); err != nil { 8 | return err 9 | } 10 | resp, err := cli.delete(ctx, "/configs/"+id, nil, nil) 11 | defer ensureReaderClosed(resp) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/secret_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // SecretRemove removes a secret. 6 | func (cli *Client) SecretRemove(ctx context.Context, id string) error { 7 | if err := cli.NewVersionError(ctx, "1.25", "secret remove"); err != nil { 8 | return err 9 | } 10 | resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil) 11 | defer ensureReaderClosed(resp) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /fixtures/dep/no_lockfile/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | 8 | "github.com/ZiCog/shiny-thing/foo" 9 | ) 10 | 11 | func main() { 12 | foo.Do() 13 | http.HandleFunc("/", hello) 14 | fmt.Println("listening...") 15 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 16 | if err != nil { 17 | panic(err) 18 | } 19 | } 20 | 21 | func hello(res http.ResponseWriter, req *http.Request) { 22 | fmt.Fprintln(res, "go, world") 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "blang", 3 | "bugs": { 4 | "URL": "https://github.com/blang/semver/issues", 5 | "url": "https://github.com/blang/semver/issues" 6 | }, 7 | "gx": { 8 | "dvcsimport": "github.com/blang/semver" 9 | }, 10 | "gxVersion": "0.10.0", 11 | "language": "go", 12 | "license": "MIT", 13 | "name": "semver", 14 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 15 | "version": "3.5.1" 16 | } 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_leave.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // SwarmLeave leaves the swarm. 9 | func (cli *Client) SwarmLeave(ctx context.Context, force bool) error { 10 | query := url.Values{} 11 | if force { 12 | query.Set("force", "1") 13 | } 14 | resp, err := cli.post(ctx, "/swarm/leave", query, nil, nil) 15 | ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/global/init.go: -------------------------------------------------------------------------------- 1 | package global 2 | 3 | import ( 4 | "time" 5 | 6 | "github.com/onsi/ginkgo/internal/failer" 7 | "github.com/onsi/ginkgo/internal/suite" 8 | ) 9 | 10 | const DefaultTimeout = time.Duration(1 * time.Second) 11 | 12 | var Suite *suite.Suite 13 | var Failer *failer.Failer 14 | 15 | func init() { 16 | InitializeGlobals() 17 | } 18 | 19 | func InitializeGlobals() { 20 | Failer = failer.New() 21 | Suite = suite.New(Failer) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | # Default state for all rules 2 | default: true 3 | 4 | # ul-style 5 | MD004: false 6 | 7 | # hard-tabs 8 | MD010: false 9 | 10 | # line-length 11 | MD013: false 12 | 13 | # no-duplicate-header 14 | MD024: 15 | siblings_only: true 16 | 17 | #single-title 18 | MD025: false 19 | 20 | # ol-prefix 21 | MD029: 22 | style: ordered 23 | 24 | # no-inline-html 25 | MD033: false 26 | 27 | # fenced-code-language 28 | MD040: false 29 | 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | 9 | package idna 10 | 11 | // Transitional processing is disabled by default in Go 1.18. 12 | // https://golang.org/issue/47510 13 | const transitionalLookup = false 14 | -------------------------------------------------------------------------------- /fixtures/errors/unvendored_godep/web.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | 8 | "github.com/ZiCog/shiny-thing/foo" 9 | ) 10 | 11 | func main() { 12 | foo.Do() 13 | http.HandleFunc("/", hello) 14 | fmt.Println("listening...") 15 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 16 | if err != nil { 17 | panic(err) 18 | } 19 | } 20 | 21 | func hello(res http.ResponseWriter, req *http.Request) { 22 | fmt.Fprintln(res, "hello, world") 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/volume/options.go: -------------------------------------------------------------------------------- 1 | package volume // import "github.com/docker/docker/api/types/volume" 2 | 3 | import "github.com/docker/docker/api/types/filters" 4 | 5 | // ListOptions holds parameters to list volumes. 6 | type ListOptions struct { 7 | Filters filters.Args 8 | } 9 | 10 | // PruneReport contains the response for Engine API: 11 | // POST "/volumes/prune" 12 | type PruneReport struct { 13 | VolumesDeleted []string 14 | SpaceReclaimed uint64 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /fixtures/brats/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { 11 | if r.URL.Path != "/" { 12 | w.WriteHeader(http.StatusNotFound) 13 | return 14 | } 15 | 16 | fmt.Fprintln(w, "Hello World!") 17 | }) 18 | 19 | fmt.Println("listening...") 20 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 21 | if err != nil { 22 | panic(err) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/tlsconfig/certpool.go: -------------------------------------------------------------------------------- 1 | package tlsconfig 2 | 3 | import ( 4 | "crypto/x509" 5 | "runtime" 6 | ) 7 | 8 | // SystemCertPool returns a copy of the system cert pool, 9 | // returns an error if failed to load or empty pool on windows. 10 | func SystemCertPool() (*x509.CertPool, error) { 11 | certpool, err := x509.SystemCertPool() 12 | if err != nil && runtime.GOOS == "windows" { 13 | return x509.NewCertPool(), nil 14 | } 15 | return certpool, err 16 | } 17 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.26.0/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package semconv implements OpenTelemetry semantic conventions. 5 | // 6 | // OpenTelemetry semantic conventions are agreed standardized naming 7 | // patterns for OpenTelemetry things. This package represents the v1.26.0 8 | // version of the OpenTelemetry semantic conventions. 9 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.26.0" 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /bin/compile: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euo pipefail 3 | 4 | BUILD_DIR=$1 5 | CACHE_DIR=$2 6 | export BUILDPACK_DIR=`dirname $(readlink -f ${BASH_SOURCE%/*})` 7 | export DEPS_DIR="$BUILD_DIR/.cloudfoundry" 8 | mkdir -p "$DEPS_DIR/0" 9 | mkdir -p "$BUILD_DIR/.profile.d" 10 | echo "export DEPS_DIR=\$HOME/.cloudfoundry" > "$BUILD_DIR/.profile.d/0000_set-deps-dir.sh" 11 | 12 | $BUILDPACK_DIR/bin/supply "$BUILD_DIR" "$CACHE_DIR" "$DEPS_DIR" 0 13 | $BUILDPACK_DIR/bin/finalize "$BUILD_DIR" "$CACHE_DIR" "$DEPS_DIR" 0 14 | -------------------------------------------------------------------------------- /fixtures/default/vendored/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | "github.com/vendorlib" 8 | ) 9 | 10 | func main() { 11 | http.HandleFunc("/", hello) 12 | fmt.Println("listening...") 13 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 14 | if err != nil { 15 | panic(err) 16 | } 17 | } 18 | 19 | func hello(res http.ResponseWriter, req *http.Request) { 20 | fmt.Fprintln(res, "go, world") 21 | fmt.Fprintln(res, "Read: a.A ==", vendorlib.A) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/build_cancel.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // BuildCancel requests the daemon to cancel the ongoing build request. 9 | func (cli *Client) BuildCancel(ctx context.Context, id string) error { 10 | query := url.Values{} 11 | query.Set("id", id) 12 | 13 | serverResp, err := cli.post(ctx, "/build/cancel", query, nil, nil) 14 | ensureReaderClosed(serverResp) 15 | return err 16 | } 17 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package semconv implements OpenTelemetry semantic conventions. 5 | // 6 | // OpenTelemetry semantic conventions are agreed standardized naming 7 | // patterns for OpenTelemetry things. This package represents the conventions 8 | // as of the v1.20.0 version of the OpenTelemetry specification. 9 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func NewColorable(file *os.File) io.Writer { 11 | if file == nil { 12 | panic("nil passed instead of *os.File to NewColorable()") 13 | } 14 | 15 | return file 16 | } 17 | 18 | func NewColorableStdout() io.Writer { 19 | return os.Stdout 20 | } 21 | 22 | func NewColorableStderr() io.Writer { 23 | return os.Stderr 24 | } 25 | -------------------------------------------------------------------------------- /fixtures/dep/simple/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | branch = "master" 6 | name = "github.com/ZiCog/shiny-thing" 7 | packages = ["foo"] 8 | revision = "e9e19444ccf5362bba846441c4700a49a94b8118" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "f508e7d90d5c3c48e1df5c85f51b6a6bfd4f99f4d6fa4d515d678c07e30a5da6" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /bin/supply: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euo pipefail 3 | 4 | BUILD_DIR=$1 5 | CACHE_DIR=$2 6 | DEPS_DIR=$3 7 | DEPS_IDX=$4 8 | 9 | export BUILDPACK_DIR=`dirname $(readlink -f ${BASH_SOURCE%/*})` 10 | source "$BUILDPACK_DIR/scripts/install_go.sh" 11 | output_dir=$(mktemp -d -t supplyXXX) 12 | 13 | echo "-----> Running go build supply" 14 | pushd $BUILDPACK_DIR 15 | $GoInstallDir/bin/go build -mod=vendor -o $output_dir/supply ./src/go/supply/cli 16 | popd 17 | 18 | $output_dir/supply "$BUILD_DIR" "$CACHE_DIR" "$DEPS_DIR" "$DEPS_IDX" 19 | -------------------------------------------------------------------------------- /fixtures/default/install_package_spec/vendored/app/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | "github.com/vendorlib" 8 | ) 9 | 10 | func main() { 11 | http.HandleFunc("/", hello) 12 | fmt.Println("listening...") 13 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 14 | if err != nil { 15 | panic(err) 16 | } 17 | } 18 | 19 | func hello(res http.ResponseWriter, req *http.Request) { 20 | fmt.Fprintln(res, "go, world") 21 | fmt.Fprintln(res, "Read: a.A ==", vendorlib.A) 22 | } 23 | -------------------------------------------------------------------------------- /fixtures/dep/vendored/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | branch = "master" 6 | name = "github.com/ZiCog/shiny-thing" 7 | packages = ["foo"] 8 | revision = "e9e19444ccf5362bba846441c4700a49a94b8118" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "f508e7d90d5c3c48e1df5c85f51b6a6bfd4f99f4d6fa4d515d678c07e30a5da6" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package guid 5 | 6 | import "golang.org/x/sys/windows" 7 | 8 | // GUID represents a GUID/UUID. It has the same structure as 9 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 10 | // that type. It is defined as its own type so that stringification and 11 | // marshaling can be supported. The representation matches that used by native 12 | // Windows code. 13 | type GUID windows.GUID 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 1m 3 | tests: true 4 | 5 | linters: 6 | disable-all: true 7 | enable: 8 | - asciicheck 9 | - errcheck 10 | - forcetypeassert 11 | - gocritic 12 | - gofmt 13 | - goimports 14 | - gosimple 15 | - govet 16 | - ineffassign 17 | - misspell 18 | - revive 19 | - staticcheck 20 | - typecheck 21 | - unused 22 | 23 | issues: 24 | exclude-use-default: false 25 | max-issues-per-linter: 0 26 | max-same-issues: 10 27 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec_iterator/spec_iterator.go: -------------------------------------------------------------------------------- 1 | package spec_iterator 2 | 3 | import ( 4 | "errors" 5 | 6 | "github.com/onsi/ginkgo/internal/spec" 7 | ) 8 | 9 | var ErrClosed = errors.New("no more specs to run") 10 | 11 | type SpecIterator interface { 12 | Next() (*spec.Spec, error) 13 | NumberOfSpecsPriorToIteration() int 14 | NumberOfSpecsToProcessIfKnown() (int, bool) 15 | NumberOfSpecsThatWillBeRunIfKnown() (int, bool) 16 | } 17 | 18 | type Counter struct { 19 | Index int `json:"index"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/schema.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 5 | 6 | // SchemaURL is the schema URL that matches the version of the semantic conventions 7 | // that this package defines. Semconv packages starting from v1.4.0 must declare 8 | // non-empty schema URL in the form https://opentelemetry.io/schemas/ 9 | const SchemaURL = "https://opentelemetry.io/schemas/1.20.0" 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.26.0/schema.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.26.0" 5 | 6 | // SchemaURL is the schema URL that matches the version of the semantic conventions 7 | // that this package defines. Semconv packages starting from v1.4.0 must declare 8 | // non-empty schema URL in the form https://opentelemetry.io/schemas/ 9 | const SchemaURL = "https://opentelemetry.io/schemas/1.26.0" 10 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/satori/go.uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - 1.7 10 | - 1.8 11 | - 1.9 12 | - tip 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | fast_finish: true 17 | before_install: 18 | - go get github.com/mattn/goveralls 19 | - go get golang.org/x/tools/cmd/cover 20 | script: 21 | - $HOME/gopath/bin/goveralls -service=travis-ci 22 | notifications: 23 | email: false 24 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /fixtures/mod/install_package_spec/vendored/cmd/app/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | "github.com/deckarep/golang-set" 8 | ) 9 | 10 | func main() { 11 | http.HandleFunc("/", hello) 12 | fmt.Println("listening...") 13 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 14 | if err != nil { 15 | panic(err) 16 | } 17 | } 18 | 19 | func hello(res http.ResponseWriter, req *http.Request) { 20 | fmt.Fprintln(res, "go, world") 21 | fmt.Fprintln(res, "Some package: ", mapset.NewSet("foo")) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/image/delete_response.go: -------------------------------------------------------------------------------- 1 | package image 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // DeleteResponse delete response 7 | // swagger:model DeleteResponse 8 | type DeleteResponse struct { 9 | 10 | // The image ID of an image that was deleted 11 | Deleted string `json:"Deleted,omitempty"` 12 | 13 | // The image ID of an image that was untagged 14 | Untagged string `json:"Untagged,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_rename.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // ContainerRename changes the name of a given container. 9 | func (cli *Client) ContainerRename(ctx context.Context, containerID, newContainerName string) error { 10 | query := url.Values{} 11 | query.Set("name", newContainerName) 12 | resp, err := cli.post(ctx, "/containers/"+containerID+"/rename", query, nil, nil) 13 | ensureReaderClosed(resp) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /fixtures/default/simple/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | 21 | url := os.Getenv("DATABASE_URL") 22 | 23 | fmt.Fprintln(res, ".") 24 | fmt.Fprintln(res, url) 25 | fmt.Fprintln(res, ".") 26 | } 27 | -------------------------------------------------------------------------------- /fixtures/errors/godir/Readme: -------------------------------------------------------------------------------- 1 | This is a sample hello world Go app to illustrate what you'd get by 2 | following the guide at 3 | http://mmcgrana.github.com/2012/09/getting-started-with-go-on-heroku.html 4 | Additionally, there are extra packages to illustrate a Go app that 5 | contains more than one package and more than one command. 6 | 7 | You can deploy it to heroku with the following commands: 8 | 9 | $ git clone https://github.com/kr/go-heroku-example.git 10 | $ cd go-heroku-example 11 | $ heroku create 12 | $ git push heroku master 13 | $ heroku open 14 | -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/internal/magic/database.go: -------------------------------------------------------------------------------- 1 | package magic 2 | 3 | var ( 4 | // Sqlite matches an SQLite database file. 5 | Sqlite = prefix([]byte{ 6 | 0x53, 0x51, 0x4c, 0x69, 0x74, 0x65, 0x20, 0x66, 7 | 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x33, 0x00, 8 | }) 9 | // MsAccessAce matches Microsoft Access dababase file. 10 | MsAccessAce = offset([]byte("Standard ACE DB"), 4) 11 | // MsAccessMdb matches legacy Microsoft Access database file (JET, 2003 and earlier). 12 | MsAccessMdb = offset([]byte("Standard Jet DB"), 4) 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/reporter.go: -------------------------------------------------------------------------------- 1 | package reporters 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/config" 5 | "github.com/onsi/ginkgo/types" 6 | ) 7 | 8 | type Reporter interface { 9 | SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) 10 | BeforeSuiteDidRun(setupSummary *types.SetupSummary) 11 | SpecWillRun(specSummary *types.SpecSummary) 12 | SpecDidComplete(specSummary *types.SpecSummary) 13 | AfterSuiteDidRun(setupSummary *types.SetupSummary) 14 | SpecSuiteDidEnd(summary *types.SuiteSummary) 15 | } 16 | -------------------------------------------------------------------------------- /fixtures/default/no_procfile/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | 21 | url := os.Getenv("DATABASE_URL") 22 | 23 | fmt.Fprintln(res, ".") 24 | fmt.Fprintln(res, url) 25 | fmt.Fprintln(res, ".") 26 | } 27 | -------------------------------------------------------------------------------- /fixtures/errors/go_version/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | 21 | url := os.Getenv("DATABASE_URL") 22 | 23 | fmt.Fprintln(res, ".") 24 | fmt.Fprintln(res, url) 25 | fmt.Fprintln(res, ".") 26 | } 27 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE: -------------------------------------------------------------------------------- 1 | What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running `cf curl /v2/info && cf version`? 2 | 3 | 4 | What version of the buildpack you are using? 5 | 6 | 7 | If you were attempting to accomplish a task, what was it you were attempting to do? 8 | 9 | 10 | What did you expect to happen? 11 | 12 | 13 | What was the actual behavior? 14 | 15 | 16 | Please confirm where necessary: 17 | * [ ] I have included a log output 18 | * [ ] My log includes an error message 19 | * [ ] I have included steps for reproduction 20 | -------------------------------------------------------------------------------- /fixtures/godep/wildcard_go_version/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | func main() { 10 | http.HandleFunc("/", hello) 11 | fmt.Println("listening...") 12 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 13 | if err != nil { 14 | panic(err) 15 | } 16 | } 17 | 18 | func hello(res http.ResponseWriter, req *http.Request) { 19 | fmt.Fprintln(res, "go, world") 20 | 21 | url := os.Getenv("DATABASE_URL") 22 | 23 | fmt.Fprintln(res, ".") 24 | fmt.Fprintln(res, url) 25 | fmt.Fprintln(res, ".") 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/volume/list_response.go: -------------------------------------------------------------------------------- 1 | package volume 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ListResponse VolumeListResponse 7 | // 8 | // Volume list response 9 | // swagger:model ListResponse 10 | type ListResponse struct { 11 | 12 | // List of volumes 13 | Volumes []*Volume `json:"Volumes"` 14 | 15 | // Warnings that occurred when fetching the list of volumes. 16 | // 17 | Warnings []string `json:"Warnings"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/security.go: -------------------------------------------------------------------------------- 1 | package fs 2 | 3 | // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level 4 | type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32` 5 | 6 | // Impersonation levels 7 | const ( 8 | SecurityAnonymous SecurityImpersonationLevel = 0 9 | SecurityIdentification SecurityImpersonationLevel = 1 10 | SecurityImpersonation SecurityImpersonationLevel = 2 11 | SecurityDelegation SecurityImpersonationLevel = 3 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_nonwindows.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package guid 5 | 6 | // GUID represents a GUID/UUID. It has the same structure as 7 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 8 | // that type. It is defined as its own type as that is only available to builds 9 | // targeted at `windows`. The representation matches that used by native Windows 10 | // code. 11 | type GUID struct { 12 | Data1 uint32 13 | Data2 uint16 14 | Data3 uint16 15 | Data4 [8]byte 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/tail_posix.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 FOSS contributors of https://github.com/nxadm/tail 2 | // +build !windows 3 | 4 | package tail 5 | 6 | import ( 7 | "os" 8 | ) 9 | 10 | // Deprecated: this function is only useful internally and, as such, 11 | // it will be removed from the API in a future major release. 12 | // 13 | // OpenFile proxies a os.Open call for a file so it can be correctly tailed 14 | // on POSIX and non-POSIX OSes like MS Windows. 15 | func OpenFile(name string) (file *os.File, err error) { 16 | return os.Open(name) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/config_pre_go124.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.24 6 | 7 | package http2 8 | 9 | import "net/http" 10 | 11 | // Pre-Go 1.24 fallback. 12 | // The Server.HTTP2 and Transport.HTTP2 config fields were added in Go 1.24. 13 | 14 | func fillNetHTTPServerConfig(conf *http2Config, srv *http.Server) {} 15 | 16 | func fillNetHTTPTransportConfig(conf *http2Config, tr *http.Transport) {} 17 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/libbuildpack/ansicleaner/buffer.go: -------------------------------------------------------------------------------- 1 | package ansicleaner 2 | 3 | import ( 4 | "io" 5 | "strings" 6 | ) 7 | 8 | type bufferCleaner struct { 9 | w io.Writer 10 | replacer *strings.Replacer 11 | } 12 | 13 | func New(w io.Writer) io.Writer { 14 | replacer := strings.NewReplacer("\033[31;1m", "", "\033[33;1m", "", "\033[34;1m", "", "\033[0m", "") 15 | return &bufferCleaner{w: w, replacer: replacer} 16 | } 17 | 18 | func (b *bufferCleaner) Write(bytes []byte) (int, error) { 19 | return b.replacer.WriteString(b.w, string(bytes)) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/checkpoint_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/checkpoint" 7 | ) 8 | 9 | // CheckpointCreate creates a checkpoint from the given container with the given name 10 | func (cli *Client) CheckpointCreate(ctx context.Context, container string, options checkpoint.CreateOptions) error { 11 | resp, err := cli.post(ctx, "/containers/"+container+"/checkpoints", nil, options, nil) 12 | ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/switchblade/random_name.go: -------------------------------------------------------------------------------- 1 | package switchblade 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | 7 | "github.com/teris-io/shortid" 8 | ) 9 | 10 | func RandomName() (string, error) { 11 | id, err := shortid.Generate() 12 | if err != nil { 13 | return "", err 14 | } 15 | 16 | // Replace underscores with hyphens to make the name DNS-safe 17 | // Cloud Foundry uses app names in DNS URLs where underscores are not allowed 18 | id = strings.ReplaceAll(id, "_", "-") 19 | 20 | return strings.ToLower(fmt.Sprintf("switchblade-%s", id)), nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/wait_response.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // WaitResponse ContainerWaitResponse 7 | // 8 | // OK response to ContainerWait operation 9 | // swagger:model WaitResponse 10 | type WaitResponse struct { 11 | 12 | // error 13 | Error *WaitExitError `json:"Error,omitempty"` 14 | 15 | // Exit code of the container 16 | // Required: true 17 | StatusCode int64 `json:"StatusCode"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/node_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // NodeRemove removes a Node. 11 | func (cli *Client) NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error { 12 | query := url.Values{} 13 | if options.Force { 14 | query.Set("force", "1") 15 | } 16 | 17 | resp, err := cli.delete(ctx, "/nodes/"+nodeID, query, nil) 18 | defer ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/node_update.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // NodeUpdate updates a Node. 11 | func (cli *Client) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error { 12 | query := url.Values{} 13 | query.Set("version", version.String()) 14 | resp, err := cli.post(ctx, "/nodes/"+nodeID+"/update", query, node, nil) 15 | ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/internal/hash/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2022 Ulrich Kunitz. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package hash provides rolling hashes. 7 | 8 | Rolling hashes have to be used for maintaining the positions of n-byte 9 | sequences in the dictionary buffer. 10 | 11 | The package provides currently the Rabin-Karp rolling hash and a Cyclic 12 | Polynomial hash. Both support the Hashes method to be used with an interface. 13 | */ 14 | package hash 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/filesystem_change.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // FilesystemChange Change in the container's filesystem. 7 | // 8 | // swagger:model FilesystemChange 9 | type FilesystemChange struct { 10 | 11 | // kind 12 | // Required: true 13 | Kind ChangeType `json:"Kind"` 14 | 15 | // Path to file or directory that has changed. 16 | // 17 | // Required: true 18 | Path string `json:"Path"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/tlsconfig/config_client_ciphers.go: -------------------------------------------------------------------------------- 1 | // Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers. 2 | package tlsconfig 3 | 4 | import ( 5 | "crypto/tls" 6 | ) 7 | 8 | // Client TLS cipher suites (dropping CBC ciphers for client preferred suite set) 9 | var clientCipherSuites = []uint16{ 10 | tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, 11 | tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 12 | tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, 13 | tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang 2 | 3 | RUN mkdir -p $GOPATH/src/github.com/nxadm/tail/ 4 | ADD . $GOPATH/src/github.com/nxadm/tail/ 5 | 6 | # expecting to fetch dependencies successfully. 7 | RUN go get -v github.com/nxadm/tail 8 | 9 | # expecting to run the test successfully. 10 | RUN go test -v github.com/nxadm/tail 11 | 12 | # expecting to install successfully 13 | RUN go install -v github.com/nxadm/tail 14 | RUN go install -v github.com/nxadm/tail/cmd/gotail 15 | 16 | RUN $GOPATH/bin/gotail -h || true 17 | 18 | ENV PATH $GOPATH/bin:$PATH 19 | CMD ["gotail"] 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // PluginRemove removes a plugin 11 | func (cli *Client) PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error { 12 | query := url.Values{} 13 | if options.Force { 14 | query.Set("force", "1") 15 | } 16 | 17 | resp, err := cli.delete(ctx, "/plugins/"+name, query, nil) 18 | defer ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/trace/nonrecording.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package trace // import "go.opentelemetry.io/otel/trace" 5 | 6 | // nonRecordingSpan is a minimal implementation of a Span that wraps a 7 | // SpanContext. It performs no operations other than to return the wrapped 8 | // SpanContext. 9 | type nonRecordingSpan struct { 10 | noopSpan 11 | 12 | sc SpanContext 13 | } 14 | 15 | // SpanContext returns the wrapped SpanContext. 16 | func (s nonRecordingSpan) SpanContext() SpanContext { return s.sc } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/checkpoint/options.go: -------------------------------------------------------------------------------- 1 | package checkpoint 2 | 3 | // CreateOptions holds parameters to create a checkpoint from a container. 4 | type CreateOptions struct { 5 | CheckpointID string 6 | CheckpointDir string 7 | Exit bool 8 | } 9 | 10 | // ListOptions holds parameters to list checkpoints for a container. 11 | type ListOptions struct { 12 | CheckpointDir string 13 | } 14 | 15 | // DeleteOptions holds parameters to delete a checkpoint from a container. 16 | type DeleteOptions struct { 17 | CheckpointID string 18 | CheckpointDir string 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/change_types.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | const ( 4 | // ChangeModify represents the modify operation. 5 | ChangeModify ChangeType = 0 6 | // ChangeAdd represents the add operation. 7 | ChangeAdd ChangeType = 1 8 | // ChangeDelete represents the delete operation. 9 | ChangeDelete ChangeType = 2 10 | ) 11 | 12 | func (ct ChangeType) String() string { 13 | switch ct { 14 | case ChangeModify: 15 | return "C" 16 | case ChangeAdd: 17 | return "A" 18 | case ChangeDelete: 19 | return "D" 20 | default: 21 | return "" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_disable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // PluginDisable disables a plugin 11 | func (cli *Client) PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error { 12 | query := url.Values{} 13 | if options.Force { 14 | query.Set("force", "1") 15 | } 16 | resp, err := cli.post(ctx, "/plugins/"+name+"/disable", query, nil, nil) 17 | ensureReaderClosed(resp) 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 12 | var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var st uint32 17 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 18 | return r != 0 && e == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/json.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // MarshalJSON implements the encoding/json.Marshaler interface. 8 | func (v Version) MarshalJSON() ([]byte, error) { 9 | return json.Marshal(v.String()) 10 | } 11 | 12 | // UnmarshalJSON implements the encoding/json.Unmarshaler interface. 13 | func (v *Version) UnmarshalJSON(data []byte) (err error) { 14 | var versionString string 15 | 16 | if err = json.Unmarshal(data, &versionString); err != nil { 17 | return 18 | } 19 | 20 | *v, err = Parse(versionString) 21 | 22 | return 23 | } 24 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/propagation/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package propagation contains OpenTelemetry context propagators. 6 | 7 | OpenTelemetry propagators are used to extract and inject context data from and 8 | into messages exchanged by applications. The propagator supported by this 9 | package is the W3C Trace Context encoding 10 | (https://www.w3.org/TR/trace-context/), and W3C Baggage 11 | (https://www.w3.org/TR/baggage/). 12 | */ 13 | package propagation // import "go.opentelemetry.io/otel/propagation" 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /bin/finalize: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euo pipefail 3 | 4 | BUILD_DIR=$1 5 | CACHE_DIR=$2 6 | DEPS_DIR=$3 7 | DEPS_IDX=$4 8 | PROFILE_DIR=${5:-} 9 | 10 | export BUILDPACK_DIR=`dirname $(readlink -f ${BASH_SOURCE%/*})` 11 | source "$BUILDPACK_DIR/scripts/install_go.sh" 12 | output_dir=$(mktemp -d -t finalizeXXX) 13 | 14 | echo "-----> Running go build finalize" 15 | pushd $BUILDPACK_DIR 16 | GOROOT=$GoInstallDir $GoInstallDir/bin/go build -mod=vendor -o $output_dir/finalize ./src/go/finalize/cli 17 | popd 18 | 19 | $output_dir/finalize "$BUILD_DIR" "$CACHE_DIR" "$DEPS_DIR" "$DEPS_IDX" "$PROFILE_DIR" 20 | 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_enable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | "strconv" 7 | 8 | "github.com/docker/docker/api/types" 9 | ) 10 | 11 | // PluginEnable enables a plugin 12 | func (cli *Client) PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error { 13 | query := url.Values{} 14 | query.Set("timeout", strconv.Itoa(options.Timeout)) 15 | 16 | resp, err := cli.post(ctx, "/plugins/"+name+"/enable", query, nil, nil) 17 | ensureReaderClosed(resp) 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /fixtures/util/proxy/go.sum: -------------------------------------------------------------------------------- 1 | github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4 h1:lS3P5Nw3oPO05Lk2gFiYUOL3QPaH+fRoI1wFOc4G1UY= 2 | github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= 3 | github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 h1:dWB6v3RcOy03t/bUadywsbyrQwCqZeNIEX6M1OtSZOM= 4 | github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= 5 | github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= 6 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/CODEOWNERS: -------------------------------------------------------------------------------- 1 | ##################################################### 2 | # 3 | # List of approvers for this repository 4 | # 5 | ##################################################### 6 | # 7 | # Learn about membership in OpenTelemetry community: 8 | # https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md 9 | # 10 | # 11 | # Learn about CODEOWNERS file format: 12 | # https://help.github.com/en/articles/about-code-owners 13 | # 14 | 15 | * @MrAlias @XSAM @dashpole @pellared @dmathieu 16 | 17 | CODEOWNERS @MrAlias @pellared @dashpole @XSAM @dmathieu 18 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/verify_readmes.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # SPDX-License-Identifier: Apache-2.0 5 | 6 | set -euo pipefail 7 | 8 | dirs=$(find . -type d -not -path "*/internal*" -not -path "*/test*" -not -path "*/example*" -not -path "*/.*" | sort) 9 | 10 | missingReadme=false 11 | for dir in $dirs; do 12 | if [ ! -f "$dir/README.md" ]; then 13 | echo "couldn't find README.md for $dir" 14 | missingReadme=true 15 | fi 16 | done 17 | 18 | if [ "$missingReadme" = true ] ; then 19 | echo "Error: some READMEs couldn't be found." 20 | exit 1 21 | fi 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_kill.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // ContainerKill terminates the container process but does not remove the container from the docker host. 9 | func (cli *Client) ContainerKill(ctx context.Context, containerID, signal string) error { 10 | query := url.Values{} 11 | if signal != "" { 12 | query.Set("signal", signal) 13 | } 14 | 15 | resp, err := cli.post(ctx, "/containers/"+containerID+"/kill", query, nil, nil) 16 | ensureReaderClosed(resp) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-units/README.md: -------------------------------------------------------------------------------- 1 | [![GoDoc](https://godoc.org/github.com/docker/go-units?status.svg)](https://godoc.org/github.com/docker/go-units) 2 | 3 | # Introduction 4 | 5 | go-units is a library to transform human friendly measurements into machine friendly values. 6 | 7 | ## Usage 8 | 9 | See the [docs in godoc](https://godoc.org/github.com/docker/go-units) for examples and documentation. 10 | 11 | ## Copyright and license 12 | 13 | Copyright © 2015 Docker, Inc. 14 | 15 | go-units is licensed under the Apache License, Version 2.0. 16 | See [LICENSE](LICENSE) for the full text of the license. 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/dotnet/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | "os/exec" 8 | ) 9 | 10 | func main() { 11 | http.HandleFunc("/", printDotNet) 12 | fmt.Println("listening...") 13 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 14 | if err != nil { 15 | panic(err) 16 | } 17 | } 18 | 19 | func printDotNet(res http.ResponseWriter, req *http.Request) { 20 | out, err := exec.Command("dotnet", "--version").Output() 21 | 22 | if err != nil { 23 | fmt.Fprintln(res, "error:", err) 24 | return 25 | } 26 | 27 | fmt.Fprintln(res, "dotnet:", string(out)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/plugin_interface_type.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // PluginInterfaceType plugin interface type 7 | // swagger:model PluginInterfaceType 8 | type PluginInterfaceType struct { 9 | 10 | // capability 11 | // Required: true 12 | Capability string `json:"Capability"` 13 | 14 | // prefix 15 | // Required: true 16 | Prefix string `json:"Prefix"` 17 | 18 | // version 19 | // Required: true 20 | Version string `json:"Version"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/runtime/plugin.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | // PluginSpec defines the base payload which clients can specify for creating 4 | // a service with the plugin runtime. 5 | message PluginSpec { 6 | string name = 1; 7 | string remote = 2; 8 | repeated PluginPrivilege privileges = 3; 9 | bool disabled = 4; 10 | repeated string env = 5; 11 | } 12 | 13 | // PluginPrivilege describes a permission the user has to accept 14 | // upon installing a plugin. 15 | message PluginPrivilege { 16 | string name = 1; 17 | string description = 2; 18 | repeated string value = 3; 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_push.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/http" 7 | 8 | "github.com/docker/docker/api/types/registry" 9 | ) 10 | 11 | // PluginPush pushes a plugin to a registry 12 | func (cli *Client) PluginPush(ctx context.Context, name string, registryAuth string) (io.ReadCloser, error) { 13 | resp, err := cli.post(ctx, "/plugins/"+name+"/push", nil, nil, http.Header{ 14 | registry.AuthHeader: {registryAuth}, 15 | }) 16 | if err != nil { 17 | return nil, err 18 | } 19 | return resp.body, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/README.md: -------------------------------------------------------------------------------- 1 | # go-isatty 2 | 3 | isatty for golang 4 | 5 | ## Usage 6 | 7 | ```go 8 | package main 9 | 10 | import ( 11 | "fmt" 12 | "github.com/mattn/go-isatty" 13 | "os" 14 | ) 15 | 16 | func main() { 17 | if isatty.IsTerminal(os.Stdout.Fd()) { 18 | fmt.Println("Is Terminal") 19 | } else { 20 | fmt.Println("Is Not Terminal") 21 | } 22 | } 23 | ``` 24 | 25 | ## Installation 26 | 27 | ``` 28 | $ go get github.com/mattn/go-isatty 29 | ``` 30 | 31 | # License 32 | 33 | MIT 34 | 35 | # Author 36 | 37 | Yasuhiro Matsumoto (a.k.a mattn) 38 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/create_request.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | import "github.com/docker/docker/api/types/network" 4 | 5 | // CreateRequest is the request message sent to the server for container 6 | // create calls. It is a config wrapper that holds the container [Config] 7 | // (portable) and the corresponding [HostConfig] (non-portable) and 8 | // [network.NetworkingConfig]. 9 | type CreateRequest struct { 10 | *Config 11 | HostConfig *HostConfig `json:"HostConfig,omitempty"` 12 | NetworkingConfig *network.NetworkingConfig `json:"NetworkingConfig,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/network/create_response.go: -------------------------------------------------------------------------------- 1 | package network 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // CreateResponse NetworkCreateResponse 7 | // 8 | // OK response to NetworkCreate operation 9 | // swagger:model CreateResponse 10 | type CreateResponse struct { 11 | 12 | // The ID of the created network. 13 | // Required: true 14 | ID string `json:"Id"` 15 | 16 | // Warnings encountered when creating the container 17 | // Required: true 18 | Warning string `json:"Warning"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.pullapprove.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | requirements: 4 | signed_off_by: 5 | required: true 6 | 7 | always_pending: 8 | title_regex: '^WIP' 9 | explanation: 'Work in progress...' 10 | 11 | group_defaults: 12 | required: 2 13 | approve_by_comment: 14 | enabled: true 15 | approve_regex: '^LGTM' 16 | reject_regex: '^Rejected' 17 | reset_on_push: 18 | enabled: true 19 | author_approval: 20 | ignored: true 21 | conditions: 22 | branches: 23 | - master 24 | 25 | groups: 26 | go-digest: 27 | teams: 28 | - go-digest-maintainers 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import "github.com/onsi/gomega/format" 6 | 7 | type BeNilMatcher struct { 8 | } 9 | 10 | func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { 11 | return isNil(actual), nil 12 | } 13 | 14 | func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { 15 | return format.Message(actual, "to be nil") 16 | } 17 | 18 | func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { 19 | return format.Message(actual, "not to be nil") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/timer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | package http2 5 | 6 | import "time" 7 | 8 | // A timer is a time.Timer, as an interface which can be replaced in tests. 9 | type timer = interface { 10 | C() <-chan time.Time 11 | Reset(d time.Duration) bool 12 | Stop() bool 13 | } 14 | 15 | // timeTimer adapts a time.Timer to the timer interface. 16 | type timeTimer struct { 17 | *time.Timer 18 | } 19 | 20 | func (t timeTimer) C() <-chan time.Time { return t.Timer.C } 21 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/libbuildpack/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017-Present CloudFoundry.org Foundation, Inc. All Rights Reserved. 2 | 3 | This project contains software that is Copyright (c) 2017 Pivotal Software, Inc. 4 | 5 | This project is licensed to you under the Apache License, Version 2.0 (the "License"). 6 | 7 | You may not use this project except in compliance with the License. 8 | 9 | This project may include a number of subcomponents with separate copyright notices 10 | and license terms. Your use of these subcomponents is subject to the terms and 11 | conditions of the subcomponent's license, as noted in the LICENSE file. 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/create_response.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // CreateResponse ContainerCreateResponse 7 | // 8 | // OK response to ContainerCreate operation 9 | // swagger:model CreateResponse 10 | type CreateResponse struct { 11 | 12 | // The ID of the created container 13 | // Required: true 14 | ID string `json:"Id"` 15 | 16 | // Warnings encountered when creating the container 17 | // Required: true 18 | Warnings []string `json:"Warnings"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_export.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/url" 7 | ) 8 | 9 | // ContainerExport retrieves the raw contents of a container 10 | // and returns them as an io.ReadCloser. It's up to the caller 11 | // to close the stream. 12 | func (cli *Client) ContainerExport(ctx context.Context, containerID string) (io.ReadCloser, error) { 13 | serverResp, err := cli.get(ctx, "/containers/"+containerID+"/export", url.Values{}, nil) 14 | if err != nil { 15 | return nil, err 16 | } 17 | 18 | return serverResp.body, nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/tail_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 FOSS contributors of https://github.com/nxadm/tail 2 | // +build windows 3 | 4 | package tail 5 | 6 | import ( 7 | "os" 8 | 9 | "github.com/nxadm/tail/winfile" 10 | ) 11 | 12 | // Deprecated: this function is only useful internally and, as such, 13 | // it will be removed from the API in a future major release. 14 | // 15 | // OpenFile proxies a os.Open call for a file so it can be correctly tailed 16 | // on POSIX and non-POSIX OSes like MS Windows. 17 | func OpenFile(name string) (file *os.File, err error) { 18 | return winfile.OpenFile(name, os.O_RDONLY, 0) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/image_save.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/url" 7 | ) 8 | 9 | // ImageSave retrieves one or more images from the docker host as an io.ReadCloser. 10 | // It's up to the caller to store the images and close the stream. 11 | func (cli *Client) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error) { 12 | query := url.Values{ 13 | "names": imageIDs, 14 | } 15 | 16 | resp, err := cli.get(ctx, "/images/get", query, nil) 17 | if err != nil { 18 | return nil, err 19 | } 20 | return resp.body, nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_inspect.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // SwarmInspect inspects the swarm. 11 | func (cli *Client) SwarmInspect(ctx context.Context) (swarm.Swarm, error) { 12 | serverResp, err := cli.get(ctx, "/swarm", nil, nil) 13 | defer ensureReaderClosed(serverResp) 14 | if err != nil { 15 | return swarm.Swarm{}, err 16 | } 17 | 18 | var response swarm.Swarm 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/plugin_env.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // PluginEnv plugin env 7 | // swagger:model PluginEnv 8 | type PluginEnv struct { 9 | 10 | // description 11 | // Required: true 12 | Description string `json:"Description"` 13 | 14 | // name 15 | // Required: true 16 | Name string `json:"Name"` 17 | 18 | // settable 19 | // Required: true 20 | Settable []string `json:"Settable"` 21 | 22 | // value 23 | // Required: true 24 | Value *string `json:"Value"` 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_init.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // SwarmInit initializes the swarm. 11 | func (cli *Client) SwarmInit(ctx context.Context, req swarm.InitRequest) (string, error) { 12 | serverResp, err := cli.post(ctx, "/swarm/init", nil, req, nil) 13 | defer ensureReaderClosed(serverResp) 14 | if err != nil { 15 | return "", err 16 | } 17 | 18 | var response string 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/encoding_types_1.1.go: -------------------------------------------------------------------------------- 1 | // +build !go1.2 2 | 3 | package toml 4 | 5 | // These interfaces were introduced in Go 1.2, so we add them manually when 6 | // compiling for Go 1.1. 7 | 8 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 9 | // so that Go 1.1 can be supported. 10 | type TextMarshaler interface { 11 | MarshalText() (text []byte, err error) 12 | } 13 | 14 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 15 | // here so that Go 1.1 can be supported. 16 | type TextUnmarshaler interface { 17 | UnmarshalText(text []byte) error 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/version.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // ServerVersion returns information of the docker client and server host. 11 | func (cli *Client) ServerVersion(ctx context.Context) (types.Version, error) { 12 | resp, err := cli.get(ctx, "/version", nil, nil) 13 | defer ensureReaderClosed(resp) 14 | if err != nil { 15 | return types.Version{}, err 16 | } 17 | 18 | var server types.Version 19 | err = json.NewDecoder(resp.body).Decode(&server) 20 | return server, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /fixtures/default/ldflags/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "os" 7 | ) 8 | 9 | var ( 10 | linker_flag string 11 | other_linker_flag string 12 | ) 13 | 14 | func main() { 15 | http.HandleFunc("/", hello) 16 | fmt.Println("listening...") 17 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 18 | if err != nil { 19 | panic(err) 20 | } 21 | } 22 | 23 | func hello(res http.ResponseWriter, req *http.Request) { 24 | fmt.Fprintln(res, "hello world") 25 | fmt.Fprintf(res, "linker_flag=%s\n", linker_flag) 26 | fmt.Fprintf(res, "other_linker_flag=%s\n", other_linker_flag) 27 | fmt.Fprintln(res, "done") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/plugin_device.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // PluginDevice plugin device 7 | // swagger:model PluginDevice 8 | type PluginDevice struct { 9 | 10 | // description 11 | // Required: true 12 | Description string `json:"Description"` 13 | 14 | // name 15 | // Required: true 16 | Name string `json:"Name"` 17 | 18 | // path 19 | // Required: true 20 | Path *string `json:"Path"` 21 | 22 | // settable 23 | // Required: true 24 | Settable []string `json:"Settable"` 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_disconnect.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/network" 7 | ) 8 | 9 | // NetworkDisconnect disconnects a container from an existent network in the docker host. 10 | func (cli *Client) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error { 11 | nd := network.DisconnectOptions{ 12 | Container: containerID, 13 | Force: force, 14 | } 15 | resp, err := cli.post(ctx, "/networks/"+networkID+"/disconnect", nil, nd, nil) 16 | ensureReaderClosed(resp) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/none-check.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2022 Ulrich Kunitz. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package xz 6 | 7 | import "hash" 8 | 9 | type noneHash struct{} 10 | 11 | func (h noneHash) Write(p []byte) (n int, err error) { return len(p), nil } 12 | 13 | func (h noneHash) Sum(b []byte) []byte { return b } 14 | 15 | func (h noneHash) Reset() {} 16 | 17 | func (h noneHash) Size() int { return 0 } 18 | 19 | func (h noneHash) BlockSize() int { return 0 } 20 | 21 | func newNoneHash() hash.Hash { 22 | return &noneHash{} 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/volume_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/volume" 8 | ) 9 | 10 | // VolumeCreate creates a volume in the docker host. 11 | func (cli *Client) VolumeCreate(ctx context.Context, options volume.CreateOptions) (volume.Volume, error) { 12 | var vol volume.Volume 13 | resp, err := cli.post(ctx, "/volumes/create", nil, options, nil) 14 | defer ensureReaderClosed(resp) 15 | if err != nil { 16 | return vol, err 17 | } 18 | err = json.NewDecoder(resp.body).Decode(&vol) 19 | return vol, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contribute 2 | Contributions to **mimetype** are welcome. If you find an issue and you consider 3 | contributing, you can use the [Github issues tracker](https://github.com/gabriel-vasile/mimetype/issues) 4 | in order to report it, or better yet, open a pull request. 5 | 6 | Code contributions must respect these rules: 7 | - code must be test covered 8 | - code must be formatted using gofmt tool 9 | - exported names must be documented 10 | 11 | **Important**: By submitting a pull request, you agree to allow the project 12 | owner to license your work under the same license as that used by the project. 13 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otelhttp // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" 5 | 6 | // Version is the current release version of the otelhttp instrumentation. 7 | func Version() string { 8 | return "0.57.0" 9 | // This string is updated by the pre_release.sh script during release 10 | } 11 | 12 | // SemVersion is the semantic version to be supplied to tracer/meter creation. 13 | // 14 | // Deprecated: Use [Version] instead. 15 | func SemVersion() string { 16 | return Version() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/blkiodev/blkio.go: -------------------------------------------------------------------------------- 1 | package blkiodev // import "github.com/docker/docker/api/types/blkiodev" 2 | 3 | import "fmt" 4 | 5 | // WeightDevice is a structure that holds device:weight pair 6 | type WeightDevice struct { 7 | Path string 8 | Weight uint16 9 | } 10 | 11 | func (w *WeightDevice) String() string { 12 | return fmt.Sprintf("%s:%d", w.Path, w.Weight) 13 | } 14 | 15 | // ThrottleDevice is a structure that holds device:rate_per_second pair 16 | type ThrottleDevice struct { 17 | Path string 18 | Rate uint64 19 | } 20 | 21 | func (t *ThrottleDevice) String() string { 22 | return fmt.Sprintf("%s:%d", t.Path, t.Rate) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_connect.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/network" 7 | ) 8 | 9 | // NetworkConnect connects a container to an existent network in the docker host. 10 | func (cli *Client) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error { 11 | nc := network.ConnectOptions{ 12 | Container: containerID, 13 | EndpointConfig: config, 14 | } 15 | resp, err := cli.post(ctx, "/networks/"+networkID+"/connect", nil, nc, nil) 16 | ensureReaderClosed(resp) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | go-buildpack 2 | 3 | Copyright (c) 2013-Present CloudFoundry.org Foundation, Inc. All Rights Reserved. 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/ruby/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | "net/http" 7 | "os" 8 | "os/exec" 9 | ) 10 | 11 | func main() { 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | bundlerVersion, err := exec.Command("bundle", "--version").Output() 22 | if err != nil { 23 | log.Print("ERROR:", err) 24 | fmt.Fprintf(res, "ERROR: %v\n", err) 25 | } else { 26 | fmt.Fprintf(res, "The bundler version is: %s\n", bundlerVersion) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/container_update.go: -------------------------------------------------------------------------------- 1 | package container // import "github.com/docker/docker/api/types/container" 2 | 3 | // ---------------------------------------------------------------------------- 4 | // Code generated by `swagger generate operation`. DO NOT EDIT. 5 | // 6 | // See hack/generate-swagger-api.sh 7 | // ---------------------------------------------------------------------------- 8 | 9 | // ContainerUpdateOKBody OK response to ContainerUpdate operation 10 | // swagger:model ContainerUpdateOKBody 11 | type ContainerUpdateOKBody struct { 12 | 13 | // warnings 14 | // Required: true 15 | Warnings []string `json:"Warnings"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/port.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // Port An open port on a container 7 | // swagger:model Port 8 | type Port struct { 9 | 10 | // Host IP address that the container's port is mapped to 11 | IP string `json:"IP,omitempty"` 12 | 13 | // Port on the container 14 | // Required: true 15 | PrivatePort uint16 `json:"PrivatePort"` 16 | 17 | // Port exposed on the host 18 | PublicPort uint16 `json:"PublicPort,omitempty"` 19 | 20 | // type 21 | // Required: true 22 | Type string `json:"Type"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/synchronization.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type RemoteBeforeSuiteState int 8 | 9 | const ( 10 | RemoteBeforeSuiteStateInvalid RemoteBeforeSuiteState = iota 11 | 12 | RemoteBeforeSuiteStatePending 13 | RemoteBeforeSuiteStatePassed 14 | RemoteBeforeSuiteStateFailed 15 | RemoteBeforeSuiteStateDisappeared 16 | ) 17 | 18 | type RemoteBeforeSuiteData struct { 19 | Data []byte 20 | State RemoteBeforeSuiteState 21 | } 22 | 23 | func (r RemoteBeforeSuiteData) ToJSON() []byte { 24 | data, _ := json.Marshal(r) 25 | return data 26 | } 27 | 28 | type RemoteAfterSuiteData struct { 29 | CanRun bool 30 | } 31 | -------------------------------------------------------------------------------- /fixtures/mod/vendored/vendor/github.com/BurntSushi/toml/encoding_types.go: -------------------------------------------------------------------------------- 1 | // +build go1.2 2 | 3 | package toml 4 | 5 | // In order to support Go 1.1, we define our own TextMarshaler and 6 | // TextUnmarshaler types. For Go 1.2+, we just alias them with the 7 | // standard library interfaces. 8 | 9 | import ( 10 | "encoding" 11 | ) 12 | 13 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 14 | // so that Go 1.1 can be supported. 15 | type TextMarshaler encoding.TextMarshaler 16 | 17 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 18 | // here so that Go 1.1 can be supported. 19 | type TextUnmarshaler encoding.TextUnmarshaler 20 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.cirrus.yml: -------------------------------------------------------------------------------- 1 | freebsd_task: 2 | name: 'FreeBSD' 3 | freebsd_instance: 4 | image_family: freebsd-14-1 5 | install_script: 6 | - pkg update -f 7 | - pkg install -y go 8 | test_script: 9 | # run tests as user "cirrus" instead of root 10 | - pw useradd cirrus -m 11 | - chown -R cirrus:cirrus . 12 | - FSNOTIFY_BUFFER=4096 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./... 13 | - sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./... 14 | - FSNOTIFY_DEBUG=1 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race -v ./... 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Logr is open to pull-requests, provided they fit within the intended scope of 4 | the project. Specifically, this library aims to be VERY small and minimalist, 5 | with no external dependencies. 6 | 7 | ## Compatibility 8 | 9 | This project intends to follow [semantic versioning](http://semver.org) and 10 | is very strict about compatibility. Any proposed changes MUST follow those 11 | rules. 12 | 13 | ## Performance 14 | 15 | As a logging library, logr must be as light-weight as possible. Any proposed 16 | code change must include results of running the [benchmark](./benchmark) 17 | before and after the change. 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/github.com/paketo-buildpacks/packit/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-Present CloudFoundry.org Foundation, Inc. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/config_update.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // ConfigUpdate attempts to update a config 11 | func (cli *Client) ConfigUpdate(ctx context.Context, id string, version swarm.Version, config swarm.ConfigSpec) error { 12 | if err := cli.NewVersionError(ctx, "1.30", "config update"); err != nil { 13 | return err 14 | } 15 | query := url.Values{} 16 | query.Set("version", version.String()) 17 | resp, err := cli.post(ctx, "/configs/"+id+"/update", query, config, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/secret_update.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // SecretUpdate attempts to update a secret. 11 | func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error { 12 | if err := cli.NewVersionError(ctx, "1.25", "secret update"); err != nil { 13 | return err 14 | } 15 | query := url.Values{} 16 | query.Set("version", version.String()) 17 | resp, err := cli.post(ctx, "/secrets/"+id+"/update", query, secret, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/errdefs/doc.go: -------------------------------------------------------------------------------- 1 | // Package errdefs defines a set of error interfaces that packages should use for communicating classes of errors. 2 | // Errors that cross the package boundary should implement one (and only one) of these interfaces. 3 | // 4 | // Packages should not reference these interfaces directly, only implement them. 5 | // To check if a particular error implements one of these interfaces, there are helper 6 | // functions provided (e.g. `Is`) which can be used rather than asserting the interfaces directly. 7 | // If you must assert on these interfaces, be sure to check the causal chain (`err.Cause()`). 8 | package errdefs // import "github.com/docker/docker/errdefs" 9 | -------------------------------------------------------------------------------- /vendor/github.com/paketo-buildpacks/packit/v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-Present CloudFoundry.org Foundation, Inc. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /src/go/hooks/hooks_debug.go: -------------------------------------------------------------------------------- 1 | package hooks 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "github.com/cloudfoundry/libbuildpack" 8 | ) 9 | 10 | type hooks1 struct { 11 | libbuildpack.DefaultHook 12 | } 13 | 14 | type hooks2 struct { 15 | libbuildpack.DefaultHook 16 | } 17 | 18 | func init() { 19 | if os.Getenv("BP_DEBUG") != "" { 20 | libbuildpack.AddHook(hooks1{}) 21 | libbuildpack.AddHook(hooks2{}) 22 | } 23 | } 24 | 25 | func (h hooks1) BeforeCompile(stager *libbuildpack.Stager) error { 26 | fmt.Println("HOOKS 1: BeforeCompile") 27 | return nil 28 | } 29 | 30 | func (h hooks2) AfterCompile(stager *libbuildpack.Stager) error { 31 | fmt.Println("HOOKS 2: AfterCompile") 32 | return nil 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/service_create_response.go: -------------------------------------------------------------------------------- 1 | package swarm 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ServiceCreateResponse contains the information returned to a client on the 7 | // creation of a new service. 8 | // 9 | // swagger:model ServiceCreateResponse 10 | type ServiceCreateResponse struct { 11 | 12 | // The ID of the created service. 13 | ID string `json:"ID,omitempty"` 14 | 15 | // Optional warning message. 16 | // 17 | // FIXME(thaJeztah): this should have "omitempty" in the generated type. 18 | // 19 | Warnings []string `json:"Warnings"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sort.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "sort" 5 | ) 6 | 7 | // Versions represents multiple versions. 8 | type Versions []Version 9 | 10 | // Len returns length of version collection 11 | func (s Versions) Len() int { 12 | return len(s) 13 | } 14 | 15 | // Swap swaps two versions inside the collection by its indices 16 | func (s Versions) Swap(i, j int) { 17 | s[i], s[j] = s[j], s[i] 18 | } 19 | 20 | // Less checks if version at index i is less than version at index j 21 | func (s Versions) Less(i, j int) bool { 22 | return s[i].LT(s[j]) 23 | } 24 | 25 | // Sort sorts a slice of versions 26 | func Sort(versions []Version) { 27 | sort.Sort(Versions(versions)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sql.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "database/sql/driver" 5 | "fmt" 6 | ) 7 | 8 | // Scan implements the database/sql.Scanner interface. 9 | func (v *Version) Scan(src interface{}) (err error) { 10 | var str string 11 | switch src := src.(type) { 12 | case string: 13 | str = src 14 | case []byte: 15 | str = string(src) 16 | default: 17 | return fmt.Errorf("Version.Scan: cannot convert %T to string.", src) 18 | } 19 | 20 | if t, err := Parse(str); err == nil { 21 | *v = t 22 | } 23 | 24 | return 25 | } 26 | 27 | // Value implements the database/sql/driver.Valuer interface. 28 | func (v Version) Value() (driver.Value, error) { 29 | return v.String(), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/tidwall/match/README.md: -------------------------------------------------------------------------------- 1 | # Match 2 | 3 | [![GoDoc](https://godoc.org/github.com/tidwall/match?status.svg)](https://godoc.org/github.com/tidwall/match) 4 | 5 | Match is a very simple pattern matcher where '*' matches on any 6 | number characters and '?' matches on any one character. 7 | 8 | ## Installing 9 | 10 | ``` 11 | go get -u github.com/tidwall/match 12 | ``` 13 | 14 | ## Example 15 | 16 | ```go 17 | match.Match("hello", "*llo") 18 | match.Match("jello", "?ello") 19 | match.Match("hello", "h*o") 20 | ``` 21 | 22 | 23 | ## Contact 24 | 25 | Josh Baker [@tidwall](http://twitter.com/tidwall) 26 | 27 | ## License 28 | 29 | Redcon source code is available under the MIT [License](/LICENSE). 30 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_get_unlock_key.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // SwarmGetUnlockKey retrieves the swarm's unlock key. 11 | func (cli *Client) SwarmGetUnlockKey(ctx context.Context) (types.SwarmUnlockKeyResponse, error) { 12 | serverResp, err := cli.get(ctx, "/swarm/unlockkey", nil, nil) 13 | defer ensureReaderClosed(serverResp) 14 | if err != nil { 15 | return types.SwarmUnlockKeyResponse{}, err 16 | } 17 | 18 | var response types.SwarmUnlockKeyResponse 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/system/runtime.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | // Runtime describes an OCI runtime 4 | type Runtime struct { 5 | // "Legacy" runtime configuration for runc-compatible runtimes. 6 | 7 | Path string `json:"path,omitempty"` 8 | Args []string `json:"runtimeArgs,omitempty"` 9 | 10 | // Shimv2 runtime configuration. Mutually exclusive with the legacy config above. 11 | 12 | Type string `json:"runtimeType,omitempty"` 13 | Options map[string]interface{} `json:"options,omitempty"` 14 | } 15 | 16 | // RuntimeWithStatus extends [Runtime] to hold [RuntimeStatus]. 17 | type RuntimeWithStatus struct { 18 | Runtime 19 | Status map[string]string `json:"status,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/conda/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | "net/http" 7 | "os" 8 | "os/exec" 9 | ) 10 | 11 | func main() { 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | pythonModuleLog, err := exec.Command("python", "-c", "import ujson; print(ujson.dumps([{'hello': 'world'}]))").Output() 22 | if err != nil { 23 | log.Print("ERROR:", err) 24 | fmt.Fprintf(res, "ERROR: %v\n", err) 25 | } else { 26 | fmt.Fprintf(res, "The python script evaluated to: %s\n", pythonModuleLog) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /fixtures/util/dynatrace/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function main() { 4 | set -e 5 | 6 | local dir 7 | dir="${1}" 8 | echo "dir -> ${dir}" 9 | 10 | mkdir -p "${dir}/dynatrace/oneagent/agent/lib64" 11 | mkdir -p "${dir}/dynatrace/oneagent/agent/conf" 12 | 13 | curl -s --fail "http://{{.URI}}/manifest.json" > "${dir}/dynatrace/oneagent/manifest.json" 14 | curl -s --fail "http://{{.URI}}/dynatrace-env.sh" > "${dir}/dynatrace/oneagent/dynatrace-env.sh" 15 | curl -s --fail "http://{{.URI}}/liboneagentproc.so" > "${dir}/dynatrace/oneagent/agent/lib64/liboneagentproc.so" 16 | curl -s --fail "http://{{.URI}}/ruxitagentproc.conf" > "${dir}/dynatrace/oneagent/agent/conf/ruxitagentproc.conf" 17 | } 18 | 19 | main "${@}" 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/checkpoint_delete.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types/checkpoint" 8 | ) 9 | 10 | // CheckpointDelete deletes the checkpoint with the given name from the given container 11 | func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, options checkpoint.DeleteOptions) error { 12 | query := url.Values{} 13 | if options.CheckpointDir != "" { 14 | query.Set("dir", options.CheckpointDir) 15 | } 16 | 17 | resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+options.CheckpointID, query, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /fixtures/multibuildpack/python/site.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | "net/http" 7 | "os" 8 | "os/exec" 9 | ) 10 | 11 | func main() { 12 | http.HandleFunc("/", hello) 13 | fmt.Println("listening...") 14 | err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) 15 | if err != nil { 16 | panic(err) 17 | } 18 | } 19 | 20 | func hello(res http.ResponseWriter, req *http.Request) { 21 | pythonModuleLog, err := exec.Command("python", "-c", "import ujson; print(ujson.dumps([{'hello': 'world'}]))").Output() 22 | if err != nil { 23 | log.Print("ERROR:", err) 24 | fmt.Fprintf(res, "ERROR: %v\n", err) 25 | } else { 26 | fmt.Fprintf(res, "The python script evaluated to: %s\n", pythonModuleLog) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/go/data/data.go: -------------------------------------------------------------------------------- 1 | package data 2 | 3 | import ( 4 | "fmt" 5 | "path" 6 | ) 7 | 8 | func ReleaseYAML(mainPackageName string) string { 9 | release := `--- 10 | default_process_types: 11 | web: ./bin/%s 12 | ` 13 | return fmt.Sprintf(release, path.Base(mainPackageName)) 14 | } 15 | 16 | func GoScript() string { 17 | return "PATH=$PATH:$HOME/bin\n" 18 | } 19 | 20 | func GoRootScript(goRoot string) string { 21 | contents := `export GOROOT=%s 22 | PATH=$PATH:$GOROOT/bin 23 | ` 24 | 25 | return fmt.Sprintf(contents, goRoot) 26 | } 27 | 28 | func ZZGoPathScript(mainPackageName string) string { 29 | contents := `export GOPATH=$HOME 30 | cd $GOPATH/src/%s 31 | ` 32 | return fmt.Sprintf(contents, path.Base(mainPackageName)) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/interface_experimental.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/checkpoint" 7 | ) 8 | 9 | type apiClientExperimental interface { 10 | CheckpointAPIClient 11 | } 12 | 13 | // CheckpointAPIClient defines API client methods for the checkpoints 14 | type CheckpointAPIClient interface { 15 | CheckpointCreate(ctx context.Context, container string, options checkpoint.CreateOptions) error 16 | CheckpointDelete(ctx context.Context, container string, options checkpoint.DeleteOptions) error 17 | CheckpointList(ctx context.Context, container string, options checkpoint.ListOptions) ([]checkpoint.Summary, error) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/http" 7 | "net/url" 8 | 9 | "github.com/docker/docker/api/types" 10 | ) 11 | 12 | // PluginCreate creates a plugin 13 | func (cli *Client) PluginCreate(ctx context.Context, createContext io.Reader, createOptions types.PluginCreateOptions) error { 14 | headers := http.Header(make(map[string][]string)) 15 | headers.Set("Content-Type", "application/x-tar") 16 | 17 | query := url.Values{} 18 | query.Set("name", createOptions.RepoName) 19 | 20 | resp, err := cli.postRaw(ctx, "/plugins/create", query, createContext, headers) 21 | ensureReaderClosed(resp) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/NOTICE: -------------------------------------------------------------------------------- 1 | Docker 2 | Copyright 2012-2017 Docker, Inc. 3 | 4 | This product includes software developed at Docker, Inc. (https://www.docker.com). 5 | 6 | This product contains software (https://github.com/creack/pty) developed 7 | by Keith Rarick, licensed under the MIT License. 8 | 9 | The following is courtesy of our legal counsel: 10 | 11 | 12 | Use and transfer of Docker may be subject to certain restrictions by the 13 | United States and other governments. 14 | It is your responsibility to ensure that your use and/or transfer does not 15 | violate applicable laws. 16 | 17 | For more information, please see https://www.bis.doc.gov 18 | 19 | See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/tcp_socket.go: -------------------------------------------------------------------------------- 1 | // Package sockets provides helper functions to create and configure Unix or TCP sockets. 2 | package sockets 3 | 4 | import ( 5 | "crypto/tls" 6 | "net" 7 | ) 8 | 9 | // NewTCPSocket creates a TCP socket listener with the specified address and 10 | // the specified tls configuration. If TLSConfig is set, will encapsulate the 11 | // TCP listener inside a TLS one. 12 | func NewTCPSocket(addr string, tlsConfig *tls.Config) (net.Listener, error) { 13 | l, err := net.Listen("tcp", addr) 14 | if err != nil { 15 | return nil, err 16 | } 17 | if tlsConfig != nil { 18 | tlsConfig.NextProtos = []string{"http/1.1"} 19 | l = tls.NewListener(l, tlsConfig) 20 | } 21 | return l, nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | - 1.16.x 5 | - 1.15.x 6 | 7 | cache: 8 | directories: 9 | - $GOPATH/pkg/mod 10 | 11 | # allow internal package imports, necessary for forked repositories 12 | go_import_path: github.com/onsi/ginkgo 13 | 14 | install: 15 | - GO111MODULE="off" go get -v -t ./... 16 | - GO111MODULE="off" go get golang.org/x/tools/cmd/cover 17 | - GO111MODULE="off" go get github.com/onsi/gomega 18 | - GO111MODULE="off" go install github.com/onsi/ginkgo/ginkgo 19 | - export PATH=$GOPATH/bin:$PATH 20 | 21 | script: 22 | - GO111MODULE="on" go mod tidy && git diff --exit-code go.mod go.sum 23 | - go vet 24 | - ginkgo -r --randomizeAllSpecs --randomizeSuites --race --trace 25 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/RELEASING.md: -------------------------------------------------------------------------------- 1 | A Ginkgo release is a tagged git sha and a GitHub release. To cut a release: 2 | 3 | 1. Ensure CHANGELOG.md is up to date. 4 | - Use `git log --pretty=format:'- %s [%h]' HEAD...vX.X.X` to list all the commits since the last release 5 | - Categorize the changes into 6 | - Breaking Changes (requires a major version) 7 | - New Features (minor version) 8 | - Fixes (fix version) 9 | - Maintenance (which in general should not be mentioned in `CHANGELOG.md` as they have no user impact) 10 | 1. Update `VERSION` in `config/config.go` 11 | 1. Commit, push, and release: 12 | ``` 13 | git commit -m "vM.m.p" 14 | git push 15 | gh release create "vM.m.p" 16 | git fetch --tags origin master 17 | ``` --------------------------------------------------------------------------------