├── .tool-versions ├── vendor ├── github.com │ ├── felixge │ │ └── httpsnoop │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ └── docs.go │ ├── kevinburke │ │ └── ssh_config │ │ │ ├── .gitignore │ │ │ ├── .gitattributes │ │ │ ├── .mailmap │ │ │ ├── AUTHORS.txt │ │ │ └── CHANGELOG.md │ ├── docker │ │ ├── go-connections │ │ │ ├── sockets │ │ │ │ └── README.md │ │ │ └── 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 │ │ │ │ │ │ ├── commit.go │ │ │ │ │ │ ├── wait_exit_error.go │ │ │ │ │ │ ├── change_type.go │ │ │ │ │ │ ├── update_response.go │ │ │ │ │ │ ├── wait_response.go │ │ │ │ │ │ ├── filesystem_change.go │ │ │ │ │ │ ├── change_types.go │ │ │ │ │ │ ├── create_request.go │ │ │ │ │ │ ├── top_response.go │ │ │ │ │ │ ├── create_response.go │ │ │ │ │ │ └── port.go │ │ │ │ │ ├── volume │ │ │ │ │ │ ├── volume_update.go │ │ │ │ │ │ ├── options.go │ │ │ │ │ │ └── list_response.go │ │ │ │ │ ├── error_response.go │ │ │ │ │ ├── common │ │ │ │ │ │ └── id_response.go │ │ │ │ │ ├── image │ │ │ │ │ │ └── delete_response.go │ │ │ │ │ ├── plugin_interface_type.go │ │ │ │ │ ├── network │ │ │ │ │ │ └── create_response.go │ │ │ │ │ ├── filters │ │ │ │ │ │ └── errors.go │ │ │ │ │ ├── plugin_env.go │ │ │ │ │ ├── plugin_device.go │ │ │ │ │ └── blkiodev │ │ │ │ │ │ └── blkio.go │ │ │ │ └── swagger-gen.yaml │ │ │ ├── client │ │ │ │ ├── client_windows.go │ │ │ │ ├── client_unix.go │ │ │ │ ├── swarm_join.go │ │ │ │ ├── swarm_unlock.go │ │ │ │ ├── swarm_leave.go │ │ │ │ ├── build_cancel.go │ │ │ │ ├── service_remove.go │ │ │ │ ├── network_remove.go │ │ │ │ ├── plugin_set.go │ │ │ │ ├── container_unpause.go │ │ │ │ ├── config_remove.go │ │ │ │ ├── secret_remove.go │ │ │ │ ├── container_pause.go │ │ │ │ ├── image_history_opts.go │ │ │ │ ├── swarm_inspect.go │ │ │ │ ├── swarm_init.go │ │ │ │ ├── version.go │ │ │ │ ├── container_rename.go │ │ │ │ ├── node_remove.go │ │ │ │ ├── node_update.go │ │ │ │ ├── plugin_disable.go │ │ │ │ ├── plugin_remove.go │ │ │ │ ├── volume_create.go │ │ │ │ ├── checkpoint_create.go │ │ │ │ ├── plugin_enable.go │ │ │ │ ├── plugin_push.go │ │ │ │ ├── swarm_get_unlock_key.go │ │ │ │ └── container_kill.go │ │ │ └── errdefs │ │ │ │ └── doc.go │ │ └── go-units │ │ │ ├── circle.yml │ │ │ └── README.md │ ├── go-git │ │ ├── gcfg │ │ │ ├── .gitignore │ │ │ ├── types │ │ │ │ ├── doc.go │ │ │ │ └── bool.go │ │ │ ├── README │ │ │ └── Makefile │ │ ├── go-billy │ │ │ └── v5 │ │ │ │ ├── .gitignore │ │ │ │ ├── osfs │ │ │ │ ├── os_options.go │ │ │ │ ├── os_js.go │ │ │ │ └── os_wasip1.go │ │ │ │ └── Makefile │ │ └── go-git │ │ │ └── v5 │ │ │ ├── .gitignore │ │ │ ├── plumbing │ │ │ ├── format │ │ │ │ └── objfile │ │ │ │ │ └── doc.go │ │ │ ├── storer │ │ │ │ ├── doc.go │ │ │ │ ├── index.go │ │ │ │ ├── shallow.go │ │ │ │ └── storer.go │ │ │ ├── revision.go │ │ │ └── hash │ │ │ │ ├── hash_sha1.go │ │ │ │ └── hash_sha256.go │ │ │ ├── internal │ │ │ └── revision │ │ │ │ └── token.go │ │ │ ├── doc.go │ │ │ ├── storage │ │ │ └── filesystem │ │ │ │ └── module.go │ │ │ ├── common.go │ │ │ ├── worktree_js.go │ │ │ ├── worktree_bsd.go │ │ │ ├── worktree_linux.go │ │ │ └── worktree_unix_other.go │ ├── cyphar │ │ └── filepath-securejoin │ │ │ └── VERSION │ ├── bitrise-io │ │ ├── colorstring │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ └── bitrise.yml │ │ ├── envman │ │ │ └── v2 │ │ │ │ └── version │ │ │ │ ├── version.go │ │ │ │ └── build.go │ │ ├── stepman │ │ │ ├── version │ │ │ │ ├── version.go │ │ │ │ └── build.go │ │ │ ├── toolkits │ │ │ │ └── golang_min_version.go │ │ │ └── cli │ │ │ │ └── help.go │ │ └── go-utils │ │ │ ├── log │ │ │ ├── logger.go │ │ │ ├── json_logger.go │ │ │ └── raw_logger.go │ │ │ └── command │ │ │ └── git │ │ │ └── git.go │ ├── hashicorp │ │ ├── go-retryablehttp │ │ │ ├── .go-version │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── .golangci.yml │ │ │ ├── cert_error_go119.go │ │ │ ├── cert_error_go120.go │ │ │ └── CODEOWNERS │ │ └── go-version │ │ │ └── version_collection.go │ ├── Microsoft │ │ └── go-winio │ │ │ ├── .gitattributes │ │ │ ├── CODEOWNERS │ │ │ ├── internal │ │ │ └── fs │ │ │ │ ├── doc.go │ │ │ │ └── security.go │ │ │ ├── tools.go │ │ │ ├── .gitignore │ │ │ ├── syscall.go │ │ │ └── pkg │ │ │ └── guid │ │ │ ├── guid_windows.go │ │ │ └── guid_nonwindows.go │ ├── distribution │ │ └── reference │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── CODE-OF-CONDUCT.md │ │ │ ├── SECURITY.md │ │ │ └── .golangci.yml │ ├── heimdalr │ │ └── dag │ │ │ ├── .gitignore │ │ │ └── .gitpod.yml │ ├── urfave │ │ └── cli │ │ │ ├── .flake8 │ │ │ ├── .gitignore │ │ │ └── sort.go │ ├── sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── terminal_check_js.go │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_no_terminal.go │ │ │ ├── terminal_check_solaris.go │ │ │ ├── terminal_check_unix.go │ │ │ ├── appveyor.yml │ │ │ ├── terminal_check_bsd.go │ │ │ ├── terminal_check_notappengine.go │ │ │ ├── .travis.yml │ │ │ └── terminal_check_windows.go │ ├── ryanuber │ │ └── go-glob │ │ │ └── .travis.yml │ ├── opencontainers │ │ └── go-digest │ │ │ ├── .travis.yml │ │ │ ├── .mailmap │ │ │ ├── MAINTAINERS │ │ │ └── .pullapprove.yml │ ├── russross │ │ └── blackfriday │ │ │ └── v2 │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── ProtonMail │ │ └── go-crypto │ │ │ ├── openpgp │ │ │ └── packet │ │ │ │ ├── config_v5.go │ │ │ │ ├── recipient.go │ │ │ │ └── packet_unsupported.go │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── google │ │ └── uuid │ │ │ ├── CONTRIBUTORS │ │ │ ├── doc.go │ │ │ └── node_js.go │ ├── pjbgf │ │ └── sha1cd │ │ │ ├── ubc │ │ │ └── doc.go │ │ │ ├── sha1cdblock_noasm.go │ │ │ ├── detection.go │ │ │ └── Dockerfile.arm │ ├── go-logr │ │ ├── logr │ │ │ ├── CHANGELOG.md │ │ │ ├── .golangci.yaml │ │ │ └── CONTRIBUTING.md │ │ └── stdr │ │ │ └── README.md │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── cloudflare │ │ └── circl │ │ │ ├── sign │ │ │ └── ed25519 │ │ │ │ ├── pubkey112.go │ │ │ │ └── pubkey.go │ │ │ ├── dh │ │ │ ├── x448 │ │ │ │ └── curve_noasm.go │ │ │ └── x25519 │ │ │ │ └── curve_noasm.go │ │ │ ├── math │ │ │ ├── integer.go │ │ │ ├── fp448 │ │ │ │ └── fp_noasm.go │ │ │ └── fp25519 │ │ │ │ └── fp_noasm.go │ │ │ └── internal │ │ │ └── sha3 │ │ │ └── xor.go │ ├── stretchr │ │ └── testify │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ ├── require.go.tmpl │ │ │ └── forward_requirements.go │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ └── forward_assertions.go │ ├── gofrs │ │ └── uuid │ │ │ └── .gitignore │ ├── xanzy │ │ └── ssh-agent │ │ │ └── .gitignore │ ├── sergi │ │ └── go-diff │ │ │ └── diffmatchpatch │ │ │ ├── operation_string.go │ │ │ └── mathutil.go │ ├── gogo │ │ └── protobuf │ │ │ └── AUTHORS │ └── skeema │ │ └── knownhosts │ │ └── NOTICE ├── golang.org │ └── x │ │ ├── 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 │ │ │ ├── auxv_unsupported.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 │ │ ├── plan9 │ │ │ ├── asm.s │ │ │ ├── pwd_plan9.go │ │ │ ├── race0.go │ │ │ ├── mksysnum_plan9.sh │ │ │ └── str.go │ │ ├── cpu │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_zos.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_other_riscv64.go │ │ │ ├── cpu_other_mips64x.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_other_ppc64x.go │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_other_x86.go │ │ │ ├── cpu_linux.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_loong64.s │ │ │ ├── cpu_openbsd_arm64.s │ │ │ ├── cpu_ppc64x.go │ │ │ ├── endian_big.go │ │ │ ├── runtime_auxv_go121.go │ │ │ ├── runtime_auxv.go │ │ │ ├── endian_little.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── cpu_wasm.go │ │ │ ├── cpu_gc_x86.go │ │ │ └── cpu_linux_mips64x.go │ │ ├── windows │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ └── str.go │ │ └── execabs │ │ │ ├── execabs_go118.go │ │ │ └── execabs_go119.go │ │ ├── term │ │ ├── codereview.cfg │ │ ├── term_unix_other.go │ │ ├── term_unix_bsd.go │ │ └── README.md │ │ ├── crypto │ │ ├── blake2b │ │ │ ├── go125.go │ │ │ └── blake2b_ref.go │ │ ├── internal │ │ │ └── poly1305 │ │ │ │ └── mac_noasm.go │ │ ├── chacha20 │ │ │ ├── chacha_noasm.go │ │ │ ├── chacha_arm64.go │ │ │ └── chacha_ppc64x.go │ │ └── argon2 │ │ │ └── blamka_ref.go │ │ ├── tools │ │ └── internal │ │ │ ├── pkgbits │ │ │ ├── flags.go │ │ │ └── support.go │ │ │ ├── event │ │ │ ├── doc.go │ │ │ └── keys │ │ │ │ └── util.go │ │ │ ├── gcimporter │ │ │ ├── unified_yes.go │ │ │ ├── unified_no.go │ │ │ └── newInterface11.go │ │ │ └── versions │ │ │ ├── toolchain_go119.go │ │ │ ├── toolchain_go120.go │ │ │ ├── toolchain_go121.go │ │ │ ├── constraint_go121.go │ │ │ ├── constraint.go │ │ │ ├── toolchain.go │ │ │ └── types.go │ │ └── sync │ │ └── errgroup │ │ ├── go120.go │ │ └── pre_go120.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 │ │ │ ├── noop │ │ │ │ └── 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 │ ├── auto │ │ └── sdk │ │ │ ├── internal │ │ │ └── telemetry │ │ │ │ └── doc.go │ │ │ └── doc.go │ └── contrib │ │ └── instrumentation │ │ └── net │ │ └── http │ │ └── otelhttp │ │ ├── doc.go │ │ └── version.go ├── al.essio.dev │ └── pkg │ │ └── shellescape │ │ ├── AUTHORS │ │ ├── .gitignore │ │ └── Makefile ├── dario.cat │ └── mergo │ │ ├── .deepsource.toml │ │ ├── .travis.yml │ │ ├── SECURITY.md │ │ └── .gitignore └── gopkg.in │ ├── yaml.v2 │ ├── .travis.yml │ └── NOTICE │ └── yaml.v3 │ └── NOTICE ├── _lessons ├── lesson1_steps │ └── .gitignore ├── lesson4_errors │ └── .gitignore ├── lesson2_workflow │ └── .gitignore ├── lesson5_complex_wf │ └── .gitignore ├── lesson6_triggers │ └── .gitignore └── lesson3_input_output_env │ └── .gitignore ├── integrationtests ├── steps │ ├── step_template │ │ ├── .gitignore │ │ └── README.md │ ├── go_toolkit_step_template │ │ ├── .gitignore │ │ └── main.go │ ├── bash_toolkit_step_template │ │ ├── .gitignore │ │ └── step.sh │ ├── test_step_with_sensitive_output │ │ ├── step.sh │ │ └── step.yml │ └── steplib_step_executable │ │ └── bitrise.yml ├── cli │ ├── trigger_check_test_secrets.yml │ ├── global_flag_test_secrets.yml │ ├── trigger_check_test_empty_bitrise.yml │ ├── json_params_test_bitrise.yml │ └── invalid_command_test.go ├── workflow │ ├── workflow_run_envs_test_secrets.yml │ ├── async_step_test_bitrise.yml │ ├── test_deploy_structure_check.yml │ ├── async_step_test.go │ └── test_deploy_structure_check_test.go ├── docker │ ├── docker_login_secrets.yml │ ├── docker_test.Dockerfile.failing-container │ ├── docker_test.Dockerfile.healthy-container │ ├── docker_test.Dockerfile.slow-booting-container │ └── docker_multiple_containers_secrets.yml ├── environment │ ├── secret_keys_sharing_test_secrets.yml │ ├── secret_keys_sharing_test.go │ └── envstore_test.go ├── config │ ├── agent_hook_build_end.sh │ ├── agent_hook_build_start.sh │ ├── modular_config_module.yml │ └── modular_config_main.yml └── toolprovider │ ├── toolprovider_test_asdf_bitrise.yml │ └── toolprovider_test_workflow_chain_bitrise.yml ├── _examples ├── experimentals │ ├── upload_download_bitrise_io │ │ └── .gitignore │ ├── create-new-step │ │ └── bitrise.yml │ └── timestamp-gen │ │ └── bitrise.yml ├── tutorials │ ├── steps-and-workflows │ │ └── steps-timestamp │ │ │ ├── README.md │ │ │ ├── step.sh │ │ │ ├── _scripts │ │ │ └── ci.sh │ │ │ └── step.yml │ └── inputs-outputs-envs │ │ └── .bitrise.secrets.yml └── README.md ├── _docs └── images │ └── success.gif ├── configs ├── testdata │ ├── minimal-agent-config.yml │ └── full-agent-config.yml └── stack.go ├── docker-compose.yml ├── .vscode └── settings.json ├── main.go ├── renovate.json ├── .gitignore ├── exitcode └── exitcode.go ├── cli ├── share.go ├── share_audit.go ├── share_finish.go ├── share_start.go ├── plugin.go ├── share_create.go └── envman.go ├── log └── http_adaptor.go ├── toolprovider ├── alias │ └── alias.go └── asdf │ └── activate.go ├── version ├── build.go └── init.go ├── progress └── progress.go ├── plugins ├── pluginerror.go └── run_test.go ├── stepruncmd └── hangdetector │ ├── hang_detector_writer.go │ ├── mock_ticker.go │ └── ticker.go ├── analytics └── state_checker.go └── .golangci.yml /.tool-versions: -------------------------------------------------------------------------------- 1 | golang 1.25.5 2 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_lessons/lesson1_steps/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .bitrise* 3 | -------------------------------------------------------------------------------- /_lessons/lesson4_errors/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .bitrise* 3 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_lessons/lesson2_workflow/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .bitrise* 3 | -------------------------------------------------------------------------------- /_lessons/lesson5_complex_wf/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .bitrise* 3 | -------------------------------------------------------------------------------- /_lessons/lesson6_triggers/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .bitrise* 3 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.out 2 | -------------------------------------------------------------------------------- /_lessons/lesson3_input_output_env/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .bitrise* 3 | -------------------------------------------------------------------------------- /integrationtests/steps/step_template/.gitignore: -------------------------------------------------------------------------------- 1 | .bitrise* 2 | -------------------------------------------------------------------------------- /vendor/github.com/cyphar/filepath-securejoin/VERSION: -------------------------------------------------------------------------------- 1 | 0.2.5 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/colorstring/.gitignore: -------------------------------------------------------------------------------- 1 | .bitrise* 2 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/colorstring/README.md: -------------------------------------------------------------------------------- 1 | # colorstring 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.go-version: -------------------------------------------------------------------------------- 1 | 1.23 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /integrationtests/steps/go_toolkit_step_template/.gitignore: -------------------------------------------------------------------------------- 1 | .bitrise* 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/requirements.txt: -------------------------------------------------------------------------------- 1 | codespell==2.3.0 2 | -------------------------------------------------------------------------------- /integrationtests/cli/trigger_check_test_secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - PR: true 3 | -------------------------------------------------------------------------------- /integrationtests/steps/bash_toolkit_step_template/.gitignore: -------------------------------------------------------------------------------- 1 | .bitrise* 2 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go text eol=lf 2 | -------------------------------------------------------------------------------- /vendor/github.com/heimdalr/dag/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | *~ 3 | /coverage.txt 4 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | -------------------------------------------------------------------------------- /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/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /vendor/al.essio.dev/pkg/shellescape/AUTHORS: -------------------------------------------------------------------------------- 1 | Alessio Treglia 2 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/.gitattributes: -------------------------------------------------------------------------------- 1 | testdata/dos-lines eol=crlf 2 | -------------------------------------------------------------------------------- /_examples/experimentals/upload_download_bitrise_io/.gitignore: -------------------------------------------------------------------------------- 1 | .bitrise* 2 | tmp-bitrise.yml 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.test 4 | .vscode/ -------------------------------------------------------------------------------- /_docs/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bitrise-io/bitrise/HEAD/_docs/images/success.gif -------------------------------------------------------------------------------- /configs/testdata/minimal-agent-config.yml: -------------------------------------------------------------------------------- 1 | bitrise_dirs: 2 | BITRISE_DATA_HOME_DIR: /opt/bitrise 3 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | app: 2 | build: . 3 | volumes: 4 | - .:/go/src/github.com/bitrise-io/bitrise 5 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/envman/v2/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | var Version = "2.5.5" 4 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/stepman/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | var Version = "0.18.4" 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | /vendor 3 | Gopkg.lock 4 | Gopkg.toml 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/osfs/os_options.go: -------------------------------------------------------------------------------- 1 | package osfs 2 | 3 | type Option func(*options) 4 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "go.testTags": "linux_and_mac", 3 | "go.buildTags": "linux_and_mac" 4 | } 5 | -------------------------------------------------------------------------------- /integrationtests/workflow/workflow_run_envs_test_secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - SECRET_ERROR_MESSAGE: failure reason 3 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/.mailmap: -------------------------------------------------------------------------------- 1 | Kevin Burke Kevin Burke 2 | -------------------------------------------------------------------------------- /integrationtests/cli/global_flag_test_secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - PR: false 3 | - PULL_REQUEST_ID: "" 4 | - CI: false 5 | -------------------------------------------------------------------------------- /integrationtests/docker/docker_login_secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - BITRISE_SECRET_FILTERING: true 3 | - DOCKER_PW: test 4 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "github.com/bitrise-io/bitrise/v2/cli" 4 | 5 | func main() { 6 | cli.Run() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/ryanuber/go-glob/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | script: 5 | - go test -v ./... 6 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.12.x 4 | - 1.13.x 5 | - master 6 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/doc.go: -------------------------------------------------------------------------------- 1 | // This package contains Win32 filesystem functionality. 2 | package fs 3 | -------------------------------------------------------------------------------- /vendor/github.com/heimdalr/dag/.gitpod.yml: -------------------------------------------------------------------------------- 1 | tasks: 2 | - init: go get && go build ./... && go test ./... 3 | command: go run 4 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.swp 3 | *.8 4 | *.6 5 | _obj 6 | _test* 7 | markdown 8 | tags 9 | -------------------------------------------------------------------------------- /_examples/tutorials/steps-and-workflows/steps-timestamp/README.md: -------------------------------------------------------------------------------- 1 | # steps-timestamp 2 | Generates a timestamp and stores it into env 3 | -------------------------------------------------------------------------------- /integrationtests/docker/docker_test.Dockerfile.failing-container: -------------------------------------------------------------------------------- 1 | FROM frolvlad/alpine-bash:latest 2 | ENTRYPOINT ["nonexistent-command"] 3 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/tools.go: -------------------------------------------------------------------------------- 1 | //go:build tools 2 | 3 | package winio 4 | 5 | import _ "golang.org/x/tools/cmd/stringer" 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.out 2 | *~ 3 | coverage.txt 4 | profile.out 5 | .tmp/ 6 | .git-dist/ 7 | .vscode 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/stepman/toolkits/golang_min_version.go: -------------------------------------------------------------------------------- 1 | package toolkits 2 | 3 | const ( 4 | minGoVersionForToolkit = "1.21.10" 5 | ) 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrationtests/environment/secret_keys_sharing_test_secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - SECRET_ENV_ONE: first secret value 3 | - SECRET_ENV_TWO: second secret value 4 | -------------------------------------------------------------------------------- /integrationtests/steps/go_toolkit_step_template/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | fmt.Println("Hello bitrise") 7 | } 8 | -------------------------------------------------------------------------------- /integrationtests/steps/test_step_with_sensitive_output/step.sh: -------------------------------------------------------------------------------- 1 | curl -Ls 'https://raw.githubusercontent.com/bitrise-steplib/steps-script/master/step.sh' | bash -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/format/objfile/doc.go: -------------------------------------------------------------------------------- 1 | // Package objfile implements encoding and decoding of object files. 2 | package objfile 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/doc.go: -------------------------------------------------------------------------------- 1 | // Package storer defines the interfaces to store objects, references, etc. 2 | package storer 3 | -------------------------------------------------------------------------------- /_examples/tutorials/inputs-outputs-envs/.bitrise.secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - BITRISE_SECRET_TEST1: Bitrise secret test value 1 3 | opts: 4 | is_expand: no 5 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go: -------------------------------------------------------------------------------- 1 | //go:build !v5 2 | 3 | package packet 4 | 5 | func init() { 6 | V5Disabled = true 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "local>bitrise-io/renovate-config" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /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/go-git/gcfg/types/doc.go: -------------------------------------------------------------------------------- 1 | // Package types defines helpers for type conversions. 2 | // 3 | // The API for this package is not finalized yet. 4 | package types 5 | -------------------------------------------------------------------------------- /integrationtests/docker/docker_test.Dockerfile.healthy-container: -------------------------------------------------------------------------------- 1 | FROM frolvlad/alpine-bash:latest 2 | CMD ["bash", "-c", "sleep 3; touch /ready; echo 'Im healthy now'; sleep infinity"] 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | _temp/ 2 | _tmp/ 3 | _local/ 4 | .bitrise 5 | .bitrise.secrets.yml 6 | _bin 7 | .envstore.yml 8 | _FAKE_HOME/ 9 | .gows.user.yml 10 | .DS_Store 11 | .idea/ 12 | dist/ 13 | -------------------------------------------------------------------------------- /integrationtests/config/agent_hook_build_end.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | HOOK_DIR=$(dirname "$INTEGRATION_TEST_BINARY_PATH")/hooks 4 | mkdir -p "$HOOK_DIR" 5 | 6 | touch "$HOOK_DIR"/build_end 7 | -------------------------------------------------------------------------------- /integrationtests/docker/docker_test.Dockerfile.slow-booting-container: -------------------------------------------------------------------------------- 1 | FROM frolvlad/alpine-bash:latest 2 | CMD ["bash", "-c", "sleep 3; touch /ready; echo 'Im healthy now'; sleep infinity"] 3 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrationtests/config/agent_hook_build_start.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | HOOK_DIR=$(dirname "$INTEGRATION_TEST_BINARY_PATH")/hooks 4 | mkdir -p "$HOOK_DIR" 5 | 6 | touch "$HOOK_DIR"/build_start 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/ubc/doc.go: -------------------------------------------------------------------------------- 1 | // ubc package provides ways for SHA1 blocks to be checked for 2 | // Unavoidable Bit Conditions that arise from crypto analysis attacks. 3 | package ubc 4 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/.gitignore: -------------------------------------------------------------------------------- 1 | *.coverprofile 2 | coverage.txt 3 | node_modules/ 4 | vendor 5 | .idea 6 | /.local/ 7 | /internal/ 8 | /site/ 9 | package.json 10 | package-lock.json 11 | -------------------------------------------------------------------------------- /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-git/gcfg/README: -------------------------------------------------------------------------------- 1 | Gcfg reads INI-style configuration files into Go structs; 2 | supports user-defined types and subsections. 3 | 4 | Package docs: https://godoc.org/gopkg.in/gcfg.v1 5 | -------------------------------------------------------------------------------- /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/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/go.opentelemetry.io/otel/trace/noop/README.md: -------------------------------------------------------------------------------- 1 | # Trace Noop 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/trace/noop)](https://pkg.go.dev/go.opentelemetry.io/otel/trace/noop) 4 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/sign/ed25519/pubkey112.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.13 2 | // +build !go1.13 3 | 4 | package ed25519 5 | 6 | // PublicKey is the type of Ed25519 public keys. 7 | type PublicKey []byte 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /exitcode/exitcode.go: -------------------------------------------------------------------------------- 1 | package exitcode 2 | 3 | const ( 4 | CLISuccess = 0 5 | CLIFailed = 1 6 | CLIAbortedWithCustomTimeout = 91 7 | CLIAbortedWithNoOutputTimeout = 92 8 | ) 9 | -------------------------------------------------------------------------------- /integrationtests/steps/bash_toolkit_step_template/step.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This step uses bash toolkit 4 | # Step entry file is defined in step.yml: step_entry.sh 5 | # This script should not run! 6 | 7 | exit 1 8 | -------------------------------------------------------------------------------- /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/pjbgf/sha1cd/sha1cdblock_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || noasm || !gc 2 | // +build !amd64 noasm !gc 3 | 4 | package sha1cd 5 | 6 | func block(dig *digest, p []byte) { 7 | blockGeneric(dig, p) 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /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/github.com/ProtonMail/go-crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 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 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | test_patterns = [ 4 | "*_test.go" 5 | ] 6 | 7 | [[analyzers]] 8 | name = "go" 9 | enabled = true 10 | 11 | [analyzers.meta] 12 | import_path = "dario.cat/mergo" -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/go-utils/log/logger.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | // Logger ... 4 | type Logger interface { 5 | Print(f Formatable) 6 | } 7 | 8 | // Formatable ... 9 | type Formatable interface { 10 | String() string 11 | JSON() string 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 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /_examples/tutorials/steps-and-workflows/steps-timestamp/step.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | THIS_SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 6 | 7 | # Start go program 8 | cd "${THIS_SCRIPTDIR}" 9 | 10 | set -v 11 | 12 | go run ./step.go 13 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/sign/ed25519/pubkey.go: -------------------------------------------------------------------------------- 1 | //go:build go1.13 2 | // +build go1.13 3 | 4 | package ed25519 5 | 6 | import cryptoEd25519 "crypto/ed25519" 7 | 8 | // PublicKey is the type of Ed25519 public keys. 9 | type PublicKey cryptoEd25519.PublicKey 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.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 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | test: 4 | go vet ./... 5 | go test -v -race ./... -coverprofile=coverage.out 6 | 7 | updatedeps: 8 | go get -f -t -u ./... 9 | go get -f -u ./... 10 | 11 | .PHONY: default test updatedeps 12 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.mailmap: -------------------------------------------------------------------------------- 1 | Aaron Lehmann 2 | Derek McGowan 3 | Stephen J Day 4 | Haibing Zhou 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{ replace .Comment "assert." "require."}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/commit.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | import "github.com/docker/docker/api/types/common" 4 | 5 | // CommitResponse response for the commit API call, containing the ID of the 6 | // image that was produced. 7 | type CommitResponse = common.IDResponse 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.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 !linux && arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos.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 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /integrationtests/config/modular_config_module.yml: -------------------------------------------------------------------------------- 1 | step_bundles: 2 | print: 3 | steps: 4 | - script: 5 | inputs: 6 | - content: echo "Hello $NAME!" 7 | 8 | workflows: 9 | print_hello_world: 10 | envs: 11 | - NAME: World 12 | steps: 13 | - bundle::print: { } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.golangci.yml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | linters: 5 | disable-all: true 6 | enable: 7 | - errcheck 8 | - staticcheck 9 | - gosimple 10 | - govet 11 | output_format: colored-line-number 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/index.go: -------------------------------------------------------------------------------- 1 | package storer 2 | 3 | import "github.com/go-git/go-git/v5/plumbing/format/index" 4 | 5 | // IndexStorer generic storage of index.Index 6 | type IndexStorer interface { 7 | SetIndex(*index.Index) error 8 | Index() (*index.Index, error) 9 | } 10 | -------------------------------------------------------------------------------- /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.34.0" 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.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 !linux && !netbsd && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/auto/sdk/internal/telemetry/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package telemetry provides a lightweight representations of OpenTelemetry 6 | telemetry that is compatible with the OTLP JSON protobuf encoding. 7 | */ 8 | package telemetry 9 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/go125.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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.25 6 | 7 | package blake2b 8 | 9 | import "hash" 10 | 11 | var _ hash.XOF = (*xof)(nil) 12 | -------------------------------------------------------------------------------- /_examples/README.md: -------------------------------------------------------------------------------- 1 | # Bitrise CLI Examples 2 | 3 | * If you're just starting with Bitrise CLI head over to the `tutorials` folder/section. 4 | * The `experimentals` folder contains concepts / experimental examples which might or might not work with the current release version (most likely won't), but might provide you a hint of the future ;) 5 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/stepman/version/build.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // BuildNumber is the CI build number that creates the release. It's defined at build time using -ldflags 4 | var BuildNumber = "" 5 | 6 | // Commit is the git commit hash used for building the release. It's defined at build time using -ldflags 7 | var Commit = "" 8 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/cpu/cpu_mipsx.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 mips || mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.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 && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 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 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/envman/v2/version/build.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // BuildNumber is the CI build number that creates the release. It's defined at build time using -ldflags 4 | var BuildNumber = "" 5 | 6 | // Commit is the git commit hash used for building the release. It's defined at build time using -ldflags 7 | var Commit = "" 8 | -------------------------------------------------------------------------------- /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/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/flags.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 | package pkgbits 6 | 7 | const ( 8 | flagSyncMarkers = 1 << iota // file format contains sync markers 9 | ) 10 | -------------------------------------------------------------------------------- /cli/share.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/tools" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | func share(c *cli.Context) error { 9 | logCommandParameters(c) 10 | 11 | if err := tools.StepmanShare(); err != nil { 12 | failf("Bitrise share failed, error: %s", err) 13 | } 14 | 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /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/gofrs/uuid/.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 | # binary bundle generated by go-fuzz 15 | uuid-fuzz.zip 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.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 !linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - amd64 4 | - ppc64le 5 | install: 6 | - go get -t 7 | - go get golang.org/x/tools/cmd/cover 8 | - go get github.com/mattn/goveralls 9 | script: 10 | - go test -race -v ./... 11 | after_script: 12 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN 13 | -------------------------------------------------------------------------------- /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/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/golang.org/x/tools/internal/event/doc.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 event provides a set of packages that cover the main 6 | // concepts of telemetry in an implementation agnostic way. 7 | package event 8 | -------------------------------------------------------------------------------- /log/http_adaptor.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | // HTTPLogAdaptor adapts the retryablehttp.Logger interface to the log.Logger. 4 | type HTTPLogAdaptor struct { 5 | Logger Logger 6 | } 7 | 8 | // Printf implements the retryablehttp.Logger interface 9 | func (a *HTTPLogAdaptor) Printf(fmtStr string, vars ...interface{}) { 10 | a.Logger.Debugf(fmtStr, vars...) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/gcimporter/unified_yes.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 goexperiment.unified 6 | // +build goexperiment.unified 7 | 8 | package gcimporter 9 | 10 | const unifiedIR = true 11 | -------------------------------------------------------------------------------- /cli/share_audit.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/tools" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | func shareAudit(c *cli.Context) error { 9 | logCommandParameters(c) 10 | 11 | if err := tools.StepmanShareAudit(); err != nil { 12 | failf("Bitrise share audit failed, error: %s", err) 13 | } 14 | 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /cli/share_finish.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/tools" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | func finish(c *cli.Context) error { 9 | logCommandParameters(c) 10 | 11 | if err := tools.StepmanShareFinish(); err != nil { 12 | failf("Bitrise share finish failed, error: %s", err) 13 | } 14 | 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /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/hashicorp/go-retryablehttp/cert_error_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build !go1.20 5 | // +build !go1.20 6 | 7 | package retryablehttp 8 | 9 | import "crypto/x509" 10 | 11 | func isCertError(err error) bool { 12 | _, ok := err.(x509.UnknownAuthorityError) 13 | return ok 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/cert_error_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build go1.20 5 | // +build go1.20 6 | 7 | package retryablehttp 8 | 9 | import "crypto/tls" 10 | 11 | func isCertError(err error) bool { 12 | _, ok := err.(*tls.CertificateVerificationError) 13 | return ok 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /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/cpu/cpu_gc_arm64.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 gc 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | func getzfr0() uint64 13 | -------------------------------------------------------------------------------- /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/golang.org/x/tools/internal/gcimporter/unified_no.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 !goexperiment.unified 6 | // +build !goexperiment.unified 7 | 8 | package gcimporter 9 | 10 | const unifiedIR = false 11 | -------------------------------------------------------------------------------- /integrationtests/steps/steplib_step_executable/bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: "13" 2 | 3 | # Note the unusual steplib source here :) 4 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib-playground.git 5 | 6 | workflows: 7 | step-executable-test: 8 | steps: 9 | - dummy@0.1.0: 10 | title: Go toolkit step with prebuilt binary 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/detection.go: -------------------------------------------------------------------------------- 1 | package sha1cd 2 | 3 | import "hash" 4 | 5 | type CollisionResistantHash interface { 6 | // CollisionResistantSum extends on Sum by returning an additional boolean 7 | // which indicates whether a collision was found during the hashing process. 8 | CollisionResistantSum(b []byte) ([]byte, bool) 9 | 10 | hash.Hash 11 | } 12 | -------------------------------------------------------------------------------- /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/go-git/go-git/v5/plumbing/revision.go: -------------------------------------------------------------------------------- 1 | package plumbing 2 | 3 | // Revision represents a git revision 4 | // to get more details about git revisions 5 | // please check git manual page : 6 | // https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html 7 | type Revision string 8 | 9 | func (r Revision) String() string { 10 | return string(r) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.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 (!amd64 && !loong64 && !ppc64le && !ppc64 && !s390x) || !gc || purego 6 | 7 | package poly1305 8 | 9 | type mac struct{ macGeneric } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.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 !aix && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: 1.15.x 8 | os: linux 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - cd ci 13 | - go run mage.go -v -w ../ crossBuild 14 | - go run mage.go -v -w ../ lint 15 | - go run mage.go -v -w ../ test 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.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 gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.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 linux && !arm && !arm64 && !loong64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /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/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/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/golang.org/x/sys/cpu/cpu_other_x86.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 386 || amd64p32 || (amd64 && (!darwin || !gc)) 6 | 7 | package cpu 8 | 9 | func darwinSupportsAVX512() bool { 10 | panic("only implemented for gc && amd64 && darwin") 11 | } 12 | -------------------------------------------------------------------------------- /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/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /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/golang.org/x/term/term_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 aix || linux || solaris || zos 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/versions/toolchain_go119.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.19 6 | // +build go1.19 7 | 8 | package versions 9 | 10 | func init() { 11 | if Compare(toolchain, Go1_19) < 0 { 12 | toolchain = Go1_19 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/versions/toolchain_go120.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.20 6 | // +build go1.20 7 | 8 | package versions 9 | 10 | func init() { 11 | if Compare(toolchain, Go1_20) < 0 { 12 | toolchain = Go1_20 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/versions/toolchain_go121.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.21 6 | // +build go1.21 7 | 8 | package versions 9 | 10 | func init() { 11 | if Compare(toolchain, Go1_21) < 0 { 12 | toolchain = Go1_21 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /integrationtests/cli/trigger_check_test_empty_bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: 1.3.0 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | trigger_map: 5 | - pattern: "" 6 | is_pull_request_allowed: true 7 | workflow: triggered_by_empty_pattern 8 | - pattern: trigger_empty_workflow_id 9 | is_pull_request_allowed: true 10 | workflow: "" 11 | 12 | triggered_by_empty_pattern: 13 | -------------------------------------------------------------------------------- /toolprovider/alias/alias.go: -------------------------------------------------------------------------------- 1 | package alias 2 | 3 | import "github.com/bitrise-io/bitrise/v2/toolprovider/provider" 4 | 5 | var toolAliasMap = map[provider.ToolID]provider.ToolID{ 6 | "go": "golang", 7 | "node": "nodejs", 8 | } 9 | 10 | func GetCanonicalToolID(id provider.ToolID) provider.ToolID { 11 | if canonicalID, exists := toolAliasMap[id]; exists { 12 | return canonicalID 13 | } 14 | return id 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/storer/shallow.go: -------------------------------------------------------------------------------- 1 | package storer 2 | 3 | import "github.com/go-git/go-git/v5/plumbing" 4 | 5 | // ShallowStorer is a storage of references to shallow commits by hash, 6 | // meaning that these commits have missing parents because of a shallow fetch. 7 | type ShallowStorer interface { 8 | SetShallow([]plumbing.Hash) error 9 | Shallow() ([]plumbing.Hash, error) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/xanzy/ssh-agent/.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/crypto/blake2b/blake2b_ref.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 || purego || !gc 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/gcfg/Makefile: -------------------------------------------------------------------------------- 1 | # General 2 | WORKDIR = $(PWD) 3 | 4 | # Go parameters 5 | GOCMD = go 6 | GOTEST = $(GOCMD) test 7 | 8 | # Coverage 9 | COVERAGE_REPORT = coverage.out 10 | COVERAGE_MODE = count 11 | 12 | test: 13 | $(GOTEST) ./... 14 | 15 | test-coverage: 16 | echo "" > $(COVERAGE_REPORT); \ 17 | $(GOTEST) -coverprofile=$(COVERAGE_REPORT) -coverpkg=./... -covermode=$(COVERAGE_MODE) ./... 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.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 !386 && !amd64 && !amd64p32 && !arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.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 mips64 || mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/versions/constraint_go121.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.21 6 | // +build go1.21 7 | 8 | package versions 9 | 10 | import "go/build/constraint" 11 | 12 | func init() { 13 | ConstraintGoVersion = constraint.GoVersion 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/errgroup/go120.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 go1.20 6 | 7 | package errgroup 8 | 9 | import "context" 10 | 11 | func withCancelCause(parent context.Context) (context.Context, func(error)) { 12 | return context.WithCancelCause(parent) 13 | } 14 | -------------------------------------------------------------------------------- /version/build.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // VERSION is the main CLI version number. It's defined at build time using -ldflags 4 | var VERSION = "2.36.0" 5 | 6 | // BuildNumber is the CI build number that creates the release. It's defined at build time using -ldflags 7 | var BuildNumber = "" 8 | 9 | // Commit is the git commit hash used for building the release. It's defined at build time using -ldflags 10 | var Commit = "" 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 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 || netbsd || openbsd 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | Carlos A Becker 2 | Dustin Spicuzza 3 | Eugene Terentev 4 | Kevin Burke 5 | Mark Nevill 6 | Scott Lessans 7 | Sergey Lukjanov 8 | Wayne Ashley Berry 9 | santosh653 <70637961+santosh653@users.noreply.github.com> 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/github.com/go-git/go-git/v5/plumbing/hash/hash_sha1.go: -------------------------------------------------------------------------------- 1 | //go:build !sha256 2 | // +build !sha256 3 | 4 | package hash 5 | 6 | import "crypto" 7 | 8 | const ( 9 | // CryptoType defines what hash algorithm is being used. 10 | CryptoType = crypto.SHA1 11 | // Size defines the amount of bytes the hash yields. 12 | Size = 20 13 | // HexSize defines the strings size of the hash when represented in hexadecimal. 14 | HexSize = 40 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/plumbing/hash/hash_sha256.go: -------------------------------------------------------------------------------- 1 | //go:build sha256 2 | // +build sha256 3 | 4 | package hash 5 | 6 | import "crypto" 7 | 8 | const ( 9 | // CryptoType defines what hash algorithm is being used. 10 | CryptoType = crypto.SHA256 11 | // Size defines the amount of bytes the hash yields. 12 | Size = 32 13 | // HexSize defines the strings size of the hash when represented in hexadecimal. 14 | HexSize = 64 15 | ) 16 | -------------------------------------------------------------------------------- /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/github.com/go-git/go-git/v5/internal/revision/token.go: -------------------------------------------------------------------------------- 1 | package revision 2 | 3 | // token represents a entity extracted from string parsing 4 | type token int 5 | 6 | const ( 7 | eof token = iota 8 | 9 | aslash 10 | asterisk 11 | at 12 | caret 13 | cbrace 14 | colon 15 | control 16 | dot 17 | emark 18 | minus 19 | number 20 | obrace 21 | obracket 22 | qmark 23 | slash 24 | space 25 | tilde 26 | tokenError 27 | word 28 | ) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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 | #include "textflag.h" 6 | 7 | // func get_cpucfg(reg uint32) uint32 8 | TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0 9 | MOVW reg+0(FP), R5 10 | // CPUCFG R5, R4 = 0x00006ca4 11 | WORD $0x00006ca4 12 | MOVW R4, ret+8(FP) 13 | RET 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go118.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 !go1.19 6 | 7 | package execabs 8 | 9 | import "os/exec" 10 | 11 | func isGo119ErrDot(err error) bool { 12 | return false 13 | } 14 | 15 | func isGo119ErrFieldSet(cmd *exec.Cmd) bool { 16 | return false 17 | } 18 | -------------------------------------------------------------------------------- /progress/progress.go: -------------------------------------------------------------------------------- 1 | package progress 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/log" 5 | "github.com/bitrise-io/bitrise/v2/log/logwriter" 6 | "github.com/bitrise-io/go-utils/progress" 7 | ) 8 | 9 | func ShowIndicator(message string, action func()) { 10 | logger := log.NewLogger(log.GetGlobalLoggerOpts()) 11 | output := logwriter.NewLogWriter(logger) 12 | progress.NewDefaultWrapperWithOutput(message, output).WrapAction(action) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | | Version | Supported | 6 | | ------- | ------------------ | 7 | | 0.3.x | :white_check_mark: | 8 | | < 0.3 | :x: | 9 | 10 | ## Security contact information 11 | 12 | To report a security vulnerability, please use the 13 | [Tidelift security contact](https://tidelift.com/security). 14 | Tidelift will coordinate the fix and disclosure. 15 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | resp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) 12 | ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/support.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 | package pkgbits 6 | 7 | import "fmt" 8 | 9 | func assert(b bool) { 10 | if !b { 11 | panic("assertion failed") 12 | } 13 | } 14 | 15 | func panicf(format string, args ...any) { 16 | panic(fmt.Errorf(format, args...)) 17 | } 18 | -------------------------------------------------------------------------------- /integrationtests/cli/json_params_test_bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: 1.3.0 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | trigger_map: 5 | - pattern: json_params_test_target 6 | is_pull_request_allowed: true 7 | workflow: json_params_test_target 8 | 9 | workflows: 10 | json_params_test_target: 11 | title: json params test target 12 | steps: 13 | - script: 14 | inputs: 15 | - content: exit 0 16 | -------------------------------------------------------------------------------- /integrationtests/toolprovider/toolprovider_test_asdf_bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: "17" 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | tools: 5 | nodejs: 22:latest 6 | 7 | tool_config: 8 | provider: asdf 9 | 10 | workflows: 11 | toolprovider_test: 12 | steps: 13 | - script@1: 14 | title: Test activated tool 15 | inputs: 16 | - content: set -ex; node --version | grep -q "22" 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/common/id_response.go: -------------------------------------------------------------------------------- 1 | package common 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/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // Collection is a type that implements the sort.Interface interface 4 | // so that versions can be sorted. 5 | type Collection []*Version 6 | 7 | func (v Collection) Len() int { 8 | return len(v) 9 | } 10 | 11 | func (v Collection) Less(i, j int) bool { 12 | return v[i].LessThan(v[j]) 13 | } 14 | 15 | func (v Collection) Swap(i, j int) { 16 | v[i], v[j] = v[j], v[i] 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.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 ppc64 || ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/dh/x448/curve_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package x448 5 | 6 | import fp "github.com/cloudflare/circl/math/fp448" 7 | 8 | func double(x, z *fp.Elt) { doubleGeneric(x, z) } 9 | func diffAdd(w *[5]fp.Elt, b uint) { diffAddGeneric(w, b) } 10 | func ladderStep(w *[5]fp.Elt, b uint) { ladderStepGeneric(w, b) } 11 | func mulA24(z, x *fp.Elt) { mulA24Generic(z, x) } 12 | -------------------------------------------------------------------------------- /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/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/crypto/chacha20/chacha_noasm.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 (!arm64 && !s390x && !ppc64 && !ppc64le) || !gc || purego 6 | 7 | package chacha20 8 | 9 | const bufSize = blockSize 10 | 11 | func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { 12 | s.xorKeyStreamBlocksGeneric(dst, src) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/auxv_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Auxv() ([][2]uintptr, error) { 12 | return nil, syscall.ENOTSUP 13 | } 14 | -------------------------------------------------------------------------------- /integrationtests/docker/docker_multiple_containers_secrets.yml: -------------------------------------------------------------------------------- 1 | envs: 2 | - DOCKER_USR_STEP_EXECUTION_CONTAINER: test_usr_step_execution_container 3 | - DOCKER_PW_STEP_EXECUTION_CONTAINER: test_pwd_step_execution_container 4 | - DOCKER_USR_SERVICE_1_CONTAINER: test_usr_service_1_container 5 | - DOCKER_PW_SERVICE_1_CONTAINER: test_pwd_service_1_container 6 | - DOCKER_USR_SERVICE_2_CONTAINER: test_usr_service_2_container 7 | - DOCKER_PW_SERVICE_2_CONTAINER: test_pwd_service_2_container 8 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/dh/x25519/curve_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package x25519 5 | 6 | import fp "github.com/cloudflare/circl/math/fp25519" 7 | 8 | func double(x, z *fp.Elt) { doubleGeneric(x, z) } 9 | func diffAdd(w *[5]fp.Elt, b uint) { diffAddGeneric(w, b) } 10 | func ladderStep(w *[5]fp.Elt, b uint) { ladderStepGeneric(w, b) } 11 | func mulA24(z, x *fp.Elt) { mulA24Generic(z, x) } 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/integer.go: -------------------------------------------------------------------------------- 1 | package math 2 | 3 | import "math/bits" 4 | 5 | // NextPow2 finds the next power of two (N=2^k, k>=0) greater than n. 6 | // If n is already a power of two, then this function returns n, and log2(n). 7 | func NextPow2(n uint) (N uint, k uint) { 8 | if bits.OnesCount(n) == 1 { 9 | k = uint(bits.TrailingZeros(n)) 10 | N = n 11 | } else { 12 | k = uint(bits.Len(n)) 13 | N = uint(1) << k 14 | } 15 | return 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.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 armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_plan9.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 plan9 6 | 7 | import "syscall" 8 | 9 | func fixwd() { 10 | syscall.Fixwd() 11 | } 12 | 13 | func Getwd() (wd string, err error) { 14 | return syscall.Getwd() 15 | } 16 | 17 | func Chdir(path string) error { 18 | return syscall.Chdir(path) 19 | } 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrationtests/workflow/async_step_test_bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: 3 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | workflows: 5 | asynctest: 6 | title: Async run test 7 | summary: "" 8 | before_run: [] 9 | after_run: [] 10 | envs: [] 11 | steps: 12 | - script: 13 | inputs: 14 | - content: |- 15 | #!/usr/bin/env bash 16 | set -ex 17 | 18 | nc -l 9000 & 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/errgroup/pre_go120.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 !go1.20 6 | 7 | package errgroup 8 | 9 | import "context" 10 | 11 | func withCancelCause(parent context.Context) (context.Context, func(error)) { 12 | ctx, cancel := context.WithCancel(parent) 13 | return ctx, func(error) { cancel() } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.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 go1.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /integrationtests/workflow/test_deploy_structure_check.yml: -------------------------------------------------------------------------------- 1 | format_version: 7 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | workflows: 5 | test-deploy-dir-structure-check: 6 | description: | 7 | Check if test result dir is under test deploy dir 8 | steps: 9 | - script: 10 | inputs: 11 | - content: |- 12 | if [[ "$(dirname $BITRISE_TEST_RESULT_DIR)" != "$BITRISE_TEST_DEPLOY_DIR" ]]; then exit 1; fi 13 | -------------------------------------------------------------------------------- /plugins/pluginerror.go: -------------------------------------------------------------------------------- 1 | package plugins 2 | 3 | import "fmt" 4 | 5 | // NewNotInstalledError returns a not installed error with the provided plugin 6 | func NewNotInstalledError(plugin string) error { 7 | return NotInstalledError{ 8 | plugin: plugin, 9 | } 10 | } 11 | 12 | // NotInstalledError ... 13 | type NotInstalledError struct { 14 | plugin string 15 | } 16 | 17 | func (e NotInstalledError) Error() string { 18 | return fmt.Sprintf("%s not installed", e.plugin) 19 | } 20 | -------------------------------------------------------------------------------- /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/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. 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 uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /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/tools/internal/gcimporter/newInterface11.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 go1.11 6 | // +build go1.11 7 | 8 | package gcimporter 9 | 10 | import "go/types" 11 | 12 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 13 | return types.NewInterfaceType(methods, embeddeds) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/al.essio.dev/pkg/shellescape/.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 | 26 | .idea/ 27 | 28 | escargs 29 | 30 | config.hcl 31 | 32 | .DS_Store 33 | -------------------------------------------------------------------------------- /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/crypto/argon2/blamka_ref.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 !amd64 || purego || !gc 6 | 7 | package argon2 8 | 9 | func processBlock(out, in1, in2 *block) { 10 | processBlockGeneric(out, in1, in2, false) 11 | } 12 | 13 | func processBlockXOR(out, in1, in2 *block) { 14 | processBlockGeneric(out, in1, in2, true) 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 | -------------------------------------------------------------------------------- /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/cpu/runtime_auxv.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 | package cpu 6 | 7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/al.essio.dev/pkg/shellescape/Makefile: -------------------------------------------------------------------------------- 1 | 2 | #!/usr/bin/make -f 3 | 4 | VERSION := $(shell git describe) 5 | 6 | all: build 7 | 8 | build: 9 | go build -a -v 10 | 11 | install: 12 | go install ./cmd/escargs 13 | 14 | escargs: build 15 | go build -v \ 16 | -ldflags="-X 'main.version=$(VERSION)'" \ 17 | ./cmd/escargs 18 | 19 | clean: 20 | rm -rfv escargs 21 | 22 | uninstall: 23 | rm -v $(shell go env GOPATH)/bin/escargs 24 | 25 | .PHONY: build clean install uninstall 26 | -------------------------------------------------------------------------------- /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 | resp, err := cli.post(ctx, "/build/cancel", query, nil, nil) 14 | ensureReaderClosed(resp) 15 | return err 16 | } 17 | -------------------------------------------------------------------------------- /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/golang.org/x/tools/internal/versions/constraint.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 | package versions 6 | 7 | import "go/build/constraint" 8 | 9 | // ConstraintGoVersion is constraint.GoVersion (if built with go1.21+). 10 | // Otherwise nil. 11 | // 12 | // Deprecate once x/tools is after go1.21. 13 | var ConstraintGoVersion func(x constraint.Expr) string 14 | -------------------------------------------------------------------------------- /_examples/experimentals/create-new-step/bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: 0.9.8 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | app: 4 | envs: 5 | - STEP_DIR_PATH: ~/develop/ 6 | opts: 7 | is_expand: true 8 | is_required: true 9 | workflows: 10 | create: 11 | envs: [] 12 | steps: 13 | - script: 14 | title: Hello Bitrise! 15 | inputs: 16 | - content: |- 17 | #!/bin/bash 18 | echo "Welcome to Bitrise!" 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 | serviceID, err := trimID("service", serviceID) 8 | if err != nil { 9 | return err 10 | } 11 | 12 | resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil) 13 | defer ensureReaderClosed(resp) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.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 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go119.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 go1.19 6 | 7 | package execabs 8 | 9 | import ( 10 | "errors" 11 | "os/exec" 12 | ) 13 | 14 | func isGo119ErrDot(err error) bool { 15 | return errors.Is(err, exec.ErrDot) 16 | } 17 | 18 | func isGo119ErrFieldSet(cmd *exec.Cmd) bool { 19 | return cmd.Err != nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - "1.10.x" 5 | - "1.11.x" 6 | - tip 7 | matrix: 8 | fast_finish: true 9 | allow_failures: 10 | - go: tip 11 | install: 12 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 13 | script: 14 | - go get -t -v ./... 15 | - diff -u <(echo -n) <(gofmt -d -s .) 16 | - go tool vet . 17 | - go test -v ./... 18 | -------------------------------------------------------------------------------- /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/cpu/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/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 | -------------------------------------------------------------------------------- /stepruncmd/hangdetector/hang_detector_writer.go: -------------------------------------------------------------------------------- 1 | package hangdetector 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | type writer struct { 8 | writer io.Writer 9 | writerActivityFn func() 10 | } 11 | 12 | func newWriter(wrappedWriter io.Writer, writerActivityFn func()) writer { 13 | return writer{ 14 | writer: wrappedWriter, 15 | writerActivityFn: writerActivityFn, 16 | } 17 | } 18 | 19 | func (h writer) Write(p []byte) (int, error) { 20 | h.writerActivityFn() 21 | return h.writer.Write(p) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/update_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 | // UpdateResponse ContainerUpdateResponse 7 | // 8 | // Response for a successful container-update. 9 | // swagger:model UpdateResponse 10 | type UpdateResponse struct { 11 | 12 | // Warnings encountered when updating the container. 13 | Warnings []string `json:"Warnings"` 14 | } 15 | -------------------------------------------------------------------------------- /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 | networkID, err := trimID("network", networkID) 8 | if err != nil { 9 | return err 10 | } 11 | resp, err := cli.delete(ctx, "/networks/"+networkID, nil, nil) 12 | defer ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /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 | name, err := trimID("plugin", name) 10 | if err != nil { 11 | return err 12 | } 13 | 14 | resp, err := cli.post(ctx, "/plugins/"+name+"/set", nil, args, nil) 15 | ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /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-git/go-git/v5/plumbing/storer/storer.go: -------------------------------------------------------------------------------- 1 | package storer 2 | 3 | // Storer is a basic storer for encoded objects and references. 4 | type Storer interface { 5 | EncodedObjectStorer 6 | ReferenceStorer 7 | } 8 | 9 | // Initializer should be implemented by storers that require to perform any 10 | // operation when creating a new repository (i.e. git init). 11 | type Initializer interface { 12 | // Init performs initialization of the storer and returns the error, if 13 | // any. 14 | Init() error 15 | } 16 | -------------------------------------------------------------------------------- /cli/share_start.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/tools" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | func start(c *cli.Context) error { 9 | logCommandParameters(c) 10 | 11 | // Input validation 12 | collectionURI := c.String(CollectionKey) 13 | if collectionURI == "" { 14 | failf("No step collection specified") 15 | } 16 | 17 | if err := tools.StepmanShareStart(collectionURI); err != nil { 18 | failf("Bitrise share start failed, error: %s", err) 19 | } 20 | 21 | return nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/colorstring/bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: 5 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | workflows: 5 | test: 6 | steps: 7 | - script: 8 | inputs: 9 | - content: |- 10 | #!/usr/bin/env bash 11 | set -ex 12 | go get -u github.com/stretchr/testify/require 13 | go get -u github.com/bitrise-io/go-utils/colorstring 14 | - go-list: 15 | - golint: 16 | - errcheck: 17 | - go-test: 18 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /plugins/run_test.go: -------------------------------------------------------------------------------- 1 | package plugins 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/require" 7 | ) 8 | 9 | func TestStrip(t *testing.T) { 10 | str := "test case" 11 | require.Equal(t, "test case", strip(str)) 12 | 13 | str = " test case" 14 | require.Equal(t, "test case", strip(str)) 15 | 16 | str = "test case " 17 | require.Equal(t, "test case", strip(str)) 18 | 19 | str = " test case " 20 | require.Equal(t, "test case", strip(str)) 21 | 22 | str = "" 23 | require.Equal(t, "", strip(str)) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/Makefile: -------------------------------------------------------------------------------- 1 | # Go parameters 2 | GOCMD = go 3 | GOTEST = $(GOCMD) test 4 | WASIRUN_WRAPPER := $(CURDIR)/scripts/wasirun-wrapper 5 | 6 | .PHONY: test 7 | test: 8 | $(GOTEST) -race ./... 9 | 10 | test-coverage: 11 | echo "" > $(COVERAGE_REPORT); \ 12 | $(GOTEST) -coverprofile=$(COVERAGE_REPORT) -coverpkg=./... -covermode=$(COVERAGE_MODE) ./... 13 | 14 | .PHONY: wasitest 15 | wasitest: export GOARCH=wasm 16 | wasitest: export GOOS=wasip1 17 | wasitest: 18 | $(GOTEST) -exec $(WASIRUN_WRAPPER) ./... 19 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /integrationtests/steps/test_step_with_sensitive_output/step.yml: -------------------------------------------------------------------------------- 1 | inputs: 2 | - content: 3 | - runner_bin: /bin/bash 4 | - working_dir: $BITRISE_SOURCE_DIR 5 | opts: 6 | category: Config 7 | title: Working directory 8 | description: | 9 | This directory will be set as the current working 10 | directory for the script. 11 | 12 | Any relative path in the Script (content) will be 13 | relative to this directory. 14 | 15 | outputs: 16 | - TESTOUTPUT: test description 17 | opts: 18 | is_sensitive: true 19 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/internal/sha3/xor.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 (!amd64 && !386 && !ppc64le) || appengine 6 | // +build !amd64,!386,!ppc64le appengine 7 | 8 | package sha3 9 | 10 | // A storageBuf is an aligned array of maxRate bytes. 11 | type storageBuf [maxRate]byte 12 | 13 | func (b *storageBuf) asBytes() *[maxRate]byte { 14 | return (*[maxRate]byte)(b) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/cloudflare/circl/math/fp448/fp_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package fp448 5 | 6 | func cmov(x, y *Elt, n uint) { cmovGeneric(x, y, n) } 7 | func cswap(x, y *Elt, n uint) { cswapGeneric(x, y, n) } 8 | func add(z, x, y *Elt) { addGeneric(z, x, y) } 9 | func sub(z, x, y *Elt) { subGeneric(z, x, y) } 10 | func addsub(x, y *Elt) { addsubGeneric(x, y) } 11 | func mul(z, x, y *Elt) { mulGeneric(z, x, y) } 12 | func sqr(z, x *Elt) { sqrGeneric(z, x) } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.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 wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /_examples/tutorials/steps-and-workflows/steps-timestamp/_scripts/ci.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 6 | cd "${THIS_SCRIPT_DIR}/.." 7 | 8 | export PATH="$PATH:$GOPATH/bin" 9 | 10 | # 11 | # Script for Continuous Integration 12 | # 13 | 14 | set -v 15 | 16 | # Check for unhandled errors 17 | go get github.com/kisielk/errcheck 18 | go install github.com/kisielk/errcheck 19 | errcheck -asserts=true -blank=true ./... 20 | 21 | go test -v ./... 22 | 23 | # 24 | # ==> DONE - OK 25 | # -------------------------------------------------------------------------------- /stepruncmd/hangdetector/mock_ticker.go: -------------------------------------------------------------------------------- 1 | package hangdetector 2 | 3 | import "time" 4 | 5 | type mockTicker struct { 6 | Channel chan time.Time 7 | } 8 | 9 | func newMockTicker() mockTicker { 10 | return mockTicker{ 11 | Channel: make(chan time.Time), 12 | } 13 | } 14 | 15 | // C ... 16 | func (t mockTicker) C() <-chan time.Time { 17 | return t.Channel 18 | } 19 | 20 | // Stop ... 21 | func (t mockTicker) Stop() { 22 | } 23 | 24 | func (t mockTicker) doTicks(n int) { 25 | for i := 0; i < n; i++ { 26 | t.Channel <- time.Now() 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /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/go-git/go-git/v5/doc.go: -------------------------------------------------------------------------------- 1 | // A highly extensible git implementation in pure Go. 2 | // 3 | // go-git aims to reach the completeness of libgit2 or jgit, nowadays covers the 4 | // majority of the plumbing read operations and some of the main write 5 | // operations, but lacks the main porcelain operations such as merges. 6 | // 7 | // It is highly extensible, we have been following the open/close principle in 8 | // its design to facilitate extensions, mainly focusing the efforts on the 9 | // persistence of the objects. 10 | package git 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_arm64.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 gc && !purego 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/recipient.go: -------------------------------------------------------------------------------- 1 | package packet 2 | 3 | // Recipient type represents a Intended Recipient Fingerprint subpacket 4 | // See https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh#name-intended-recipient-fingerpr 5 | type Recipient struct { 6 | KeyVersion int 7 | Fingerprint []byte 8 | } 9 | 10 | func (r *Recipient) Serialize() []byte { 11 | packet := make([]byte, len(r.Fingerprint)+1) 12 | packet[0] = byte(r.KeyVersion) 13 | copy(packet[1:], r.Fingerprint) 14 | return packet 15 | } 16 | -------------------------------------------------------------------------------- /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 | containerID, err := trimID("container", containerID) 8 | if err != nil { 9 | return err 10 | } 11 | 12 | resp, err := cli.post(ctx, "/containers/"+containerID+"/unpause", nil, nil, nil) 13 | ensureReaderClosed(resp) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Operation -trimprefix=Diff"; DO NOT EDIT. 2 | 3 | package diffmatchpatch 4 | 5 | import "fmt" 6 | 7 | const _Operation_name = "DeleteEqualInsert" 8 | 9 | var _Operation_index = [...]uint8{0, 6, 11, 17} 10 | 11 | func (i Operation) String() string { 12 | i -= -1 13 | if i < 0 || i >= Operation(len(_Operation_index)-1) { 14 | return fmt.Sprintf("Operation(%d)", i+-1) 15 | } 16 | return _Operation_name[_Operation_index[i]:_Operation_index[i+1]] 17 | } 18 | -------------------------------------------------------------------------------- /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/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 | id, err := trimID("config", id) 8 | if err != nil { 9 | return err 10 | } 11 | if err := cli.NewVersionError(ctx, "1.30", "config remove"); err != nil { 12 | return err 13 | } 14 | resp, err := cli.delete(ctx, "/configs/"+id, nil, nil) 15 | defer ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /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 | id, err := trimID("secret", id) 8 | if err != nil { 9 | return err 10 | } 11 | if err := cli.NewVersionError(ctx, "1.25", "secret remove"); err != nil { 12 | return err 13 | } 14 | resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil) 15 | defer ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/storage/filesystem/module.go: -------------------------------------------------------------------------------- 1 | package filesystem 2 | 3 | import ( 4 | "github.com/go-git/go-git/v5/plumbing/cache" 5 | "github.com/go-git/go-git/v5/storage" 6 | "github.com/go-git/go-git/v5/storage/filesystem/dotgit" 7 | ) 8 | 9 | type ModuleStorage struct { 10 | dir *dotgit.DotGit 11 | } 12 | 13 | func (s *ModuleStorage) Module(name string) (storage.Storer, error) { 14 | fs, err := s.dir.Module(name) 15 | if err != nil { 16 | return nil, err 17 | } 18 | 19 | return NewStorage(fs, cache.NewObjectLRUDefault()), nil 20 | } 21 | -------------------------------------------------------------------------------- /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/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 | containerID, err := trimID("container", containerID) 8 | if err != nil { 9 | return err 10 | } 11 | 12 | resp, err := cli.post(ctx, "/containers/"+containerID+"/pause", nil, nil, nil) 13 | ensureReaderClosed(resp) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/common.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import "strings" 4 | 5 | // countLines returns the number of lines in a string à la git, this is 6 | // The newline character is assumed to be '\n'. The empty string 7 | // contains 0 lines. If the last line of the string doesn't end with a 8 | // newline, it will still be considered a line. 9 | func countLines(s string) int { 10 | if s == "" { 11 | return 0 12 | } 13 | 14 | nEOL := strings.Count(s, "\n") 15 | if strings.HasSuffix(s, "\n") { 16 | return nEOL 17 | } 18 | 19 | return nEOL + 1 20 | } 21 | -------------------------------------------------------------------------------- /cli/plugin.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/log" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | var pluginCommand = cli.Command{ 9 | Name: "plugin", 10 | Usage: "Plugin handling.", 11 | Subcommands: []cli.Command{ 12 | pluginInstallCommand, 13 | pluginUpdateCommand, 14 | pluginDeleteCommand, 15 | pluginInfoCommand, 16 | pluginListCommand, 17 | }, 18 | } 19 | 20 | func showSubcommandHelp(c *cli.Context) { 21 | if err := cli.ShowSubcommandHelp(c); err != nil { 22 | log.Warnf("Failed to show help, error: %s", err) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /configs/testdata/full-agent-config.yml: -------------------------------------------------------------------------------- 1 | bitrise_dirs: 2 | BITRISE_DATA_HOME_DIR: /opt/bitrise 3 | BITRISE_SOURCE_DIR: /opt/bitrise/workspace/$BITRISE_APP_SLUG 4 | BITRISE_DEPLOY_DIR: /opt/bitrise/$BITRISE_APP_SLUG/$BITRISE_BUILD_SLUG/artifacts 5 | BITRISE_TEST_DEPLOY_DIR: /opt/bitrise/$BITRISE_APP_SLUG/$BITRISE_BUILD_SLUG/test_results 6 | 7 | hooks: 8 | cleanup_on_build_start: 9 | - $BITRISE_DEPLOY_DIR 10 | 11 | cleanup_on_build_end: 12 | - $BITRISE_TEST_DEPLOY_DIR 13 | 14 | do_on_build_start: $HOOKS_DIR/cleanup.sh 15 | do_on_build_end: $HOOKS_DIR/cleanup.sh 16 | -------------------------------------------------------------------------------- /integrationtests/cli/invalid_command_test.go: -------------------------------------------------------------------------------- 1 | //go:build linux_and_mac 2 | // +build linux_and_mac 3 | 4 | package cli 5 | 6 | import ( 7 | "testing" 8 | 9 | "github.com/bitrise-io/bitrise/v2/integrationtests/internal/testhelpers" 10 | "github.com/bitrise-io/go-utils/command" 11 | "github.com/stretchr/testify/require" 12 | ) 13 | 14 | func Test_InvalidCommand(t *testing.T) { 15 | t.Log("Invalid command") 16 | { 17 | _, err := command.RunCommandAndReturnCombinedStdoutAndStderr(testhelpers.BinPath(), "invalidcmd") 18 | require.EqualError(t, err, "exit status 1") 19 | } 20 | } -------------------------------------------------------------------------------- /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/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. 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 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This removes the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.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 gc && !purego && (ppc64 || ppc64le) 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /_examples/tutorials/steps-and-workflows/steps-timestamp/step.yml: -------------------------------------------------------------------------------- 1 | title: Generate time 2 | summary: Generates current timestamp 3 | description: | 4 | Generates current timestamp 5 | website: https://github.com/bitrise-io/steps-timestamp 6 | fork_url: https://github.com/bitrise-io/steps-timestamp 7 | source: 8 | git: https://github.com/bitrise-io/steps-timestamp.git 9 | is_requires_admin_user: false 10 | is_always_run: false 11 | outputs: 12 | - UNIX_TIMESTAMP: 13 | opts: 14 | title: unix style 15 | - ISO_DATETIME: 16 | opts: 17 | title: iso 8601 (RFC3339Nano) 18 | -------------------------------------------------------------------------------- /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/docker/client/image_history_opts.go: -------------------------------------------------------------------------------- 1 | package client 2 | 3 | import ( 4 | "github.com/docker/docker/api/types/image" 5 | ) 6 | 7 | // ImageHistoryOption is a type representing functional options for the image history operation. 8 | type ImageHistoryOption interface { 9 | Apply(*imageHistoryOpts) error 10 | } 11 | type imageHistoryOptionFunc func(opt *imageHistoryOpts) error 12 | 13 | func (f imageHistoryOptionFunc) Apply(o *imageHistoryOpts) error { 14 | return f(o) 15 | } 16 | 17 | type imageHistoryOpts struct { 18 | apiOptions image.HistoryOptions 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/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/golang.org/x/sys/plan9/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 plan9 && !race 6 | 7 | package plan9 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.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/cloudflare/circl/math/fp25519/fp_noasm.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || purego 2 | // +build !amd64 purego 3 | 4 | package fp25519 5 | 6 | func cmov(x, y *Elt, n uint) { cmovGeneric(x, y, n) } 7 | func cswap(x, y *Elt, n uint) { cswapGeneric(x, y, n) } 8 | func add(z, x, y *Elt) { addGeneric(z, x, y) } 9 | func sub(z, x, y *Elt) { subGeneric(z, x, y) } 10 | func addsub(x, y *Elt) { addsubGeneric(x, y) } 11 | func mul(z, x, y *Elt) { mulGeneric(z, x, y) } 12 | func sqr(z, x *Elt) { sqrGeneric(z, x) } 13 | func modp(z *Elt) { modpGeneric(z) } 14 | -------------------------------------------------------------------------------- /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/cpu/cpu_gc_x86.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 (386 || amd64 || amd64p32) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <=1.22, the value of toolchain is unused. 11 | // 12 | // x/tools does not support building with go <1.18. So we take this 13 | // as the minimum possible maximum. 14 | var toolchain string = Go1_18 15 | -------------------------------------------------------------------------------- /integrationtests/config/modular_config_main.yml: -------------------------------------------------------------------------------- 1 | format_version: "15" 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | include: 5 | - path: modular_config_module.yml 6 | - path: print-hello.yml 7 | repository: test-bitrise-config-modules 8 | branch: main 9 | 10 | workflows: 11 | print_hello_bitrise: 12 | envs: 13 | - NAME: Bitrise 14 | steps: 15 | - script: 16 | inputs: 17 | - content: echo "Hello $NAME!" 18 | 19 | # This overwrites the NAME env from the included print-hello.yml 20 | print_hello: 21 | envs: 22 | - NAME: John Doe 23 | -------------------------------------------------------------------------------- /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/github.com/go-git/go-git/v5/worktree_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package git 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | 9 | "github.com/go-git/go-git/v5/plumbing/format/index" 10 | ) 11 | 12 | func init() { 13 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 | if os, ok := sys.(*syscall.Stat_t); ok { 15 | e.CreatedAt = time.Unix(int64(os.Ctime), int64(os.CtimeNsec)) 16 | e.Dev = uint32(os.Dev) 17 | e.Inode = uint32(os.Ino) 18 | e.GID = os.Gid 19 | e.UID = os.Uid 20 | } 21 | } 22 | } 23 | 24 | func isSymlinkWindowsNonAdmin(err error) bool { 25 | return false 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/go-git/go-git/v5/worktree_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd netbsd 2 | 3 | package git 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | 9 | "github.com/go-git/go-git/v5/plumbing/format/index" 10 | ) 11 | 12 | func init() { 13 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 | if os, ok := sys.(*syscall.Stat_t); ok { 15 | e.CreatedAt = time.Unix(os.Atimespec.Unix()) 16 | e.Dev = uint32(os.Dev) 17 | e.Inode = uint32(os.Ino) 18 | e.GID = os.Gid 19 | e.UID = os.Uid 20 | } 21 | } 22 | } 23 | 24 | func isSymlinkWindowsNonAdmin(err error) bool { 25 | return false 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_linux.go: -------------------------------------------------------------------------------- 1 | //go:build linux 2 | // +build linux 3 | 4 | package git 5 | 6 | import ( 7 | "syscall" 8 | "time" 9 | 10 | "github.com/go-git/go-git/v5/plumbing/format/index" 11 | ) 12 | 13 | func init() { 14 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 15 | if os, ok := sys.(*syscall.Stat_t); ok { 16 | e.CreatedAt = time.Unix(os.Ctim.Unix()) 17 | e.Dev = uint32(os.Dev) 18 | e.Inode = uint32(os.Ino) 19 | e.GID = os.Gid 20 | e.UID = os.Uid 21 | } 22 | } 23 | } 24 | 25 | func isSymlinkWindowsNonAdmin(_ error) bool { 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.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 linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 10 | const ( 11 | // CPU features 12 | hwcap_MIPS_MSA = 1 << 1 13 | ) 14 | 15 | func doinit() { 16 | // HWCAP feature bits 17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 18 | } 19 | 20 | func isSet(hwc uint, value uint) bool { 21 | return hwc&value != 0 22 | } 23 | -------------------------------------------------------------------------------- /version/init.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | import ( 4 | "runtime/debug" 5 | "strings" 6 | ) 7 | 8 | // IsAlternativeInstallation tracks if the current cli was installed via `go install` or not. 9 | var IsAlternativeInstallation = false 10 | 11 | func init() { 12 | if Commit != "" { 13 | return 14 | } 15 | 16 | info, available := debug.ReadBuildInfo() 17 | if available && info.Main.Version != "" { 18 | IsAlternativeInstallation = true 19 | 20 | components := strings.Split(info.Main.Version, "-") 21 | count := len(components) 22 | if count != 0 { 23 | Commit = components[count-1] 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /_examples/experimentals/timestamp-gen/bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: 0.9.8 2 | default_step_lib_source: "https://github.com/bitrise-io/bitrise-steplib.git" 3 | app: 4 | envs: 5 | - BITRISE_PROJECT_TITLE: MyTit1 6 | opts: 7 | is_expand: no 8 | - BITRISE_DEV_BRANCH: develop 9 | opts: 10 | is_expand: no 11 | workflows: 12 | _: 13 | envs: [] 14 | steps: 15 | - timestamp@0.9.0: 16 | - script: 17 | inputs: 18 | - content: | 19 | #!/bin/bash 20 | set -v 21 | echo ${UNIX_TIMESTAMP} 22 | echo ${ISO_DATETIME} 23 | -------------------------------------------------------------------------------- /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/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 | resp, err := cli.get(ctx, "/swarm", nil, nil) 13 | defer ensureReaderClosed(resp) 14 | if err != nil { 15 | return swarm.Swarm{}, err 16 | } 17 | 18 | var response swarm.Swarm 19 | err = json.NewDecoder(resp.Body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-git/v5/worktree_unix_other.go: -------------------------------------------------------------------------------- 1 | // +build openbsd dragonfly solaris 2 | 3 | package git 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | 9 | "github.com/go-git/go-git/v5/plumbing/format/index" 10 | ) 11 | 12 | func init() { 13 | fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 | if os, ok := sys.(*syscall.Stat_t); ok { 15 | e.CreatedAt = time.Unix(os.Atim.Unix()) 16 | e.Dev = uint32(os.Dev) 17 | e.Inode = uint32(os.Ino) 18 | e.GID = os.Gid 19 | e.UID = os.Uid 20 | } 21 | } 22 | } 23 | 24 | func isSymlinkWindowsNonAdmin(err error) bool { 25 | return false 26 | } 27 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/plan9/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 plan9 6 | 7 | package plan9 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/tools/internal/event/keys/util.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 | package keys 6 | 7 | import ( 8 | "sort" 9 | "strings" 10 | ) 11 | 12 | // Join returns a canonical join of the keys in S: 13 | // a sorted comma-separated string list. 14 | func Join[S ~[]T, T ~string](s S) string { 15 | strs := make([]string, 0, len(s)) 16 | for _, v := range s { 17 | strs = append(strs, string(v)) 18 | } 19 | sort.Strings(strs) 20 | return strings.Join(strs, ",") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/auto/sdk/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package sdk provides an auto-instrumentable OpenTelemetry SDK. 6 | 7 | An [go.opentelemetry.io/auto.Instrumentation] can be configured to target the 8 | process running this SDK. In that case, all telemetry the SDK produces will be 9 | processed and handled by that [go.opentelemetry.io/auto.Instrumentation]. 10 | 11 | By default, if there is no [go.opentelemetry.io/auto.Instrumentation] set to 12 | auto-instrument the SDK, the SDK will not generate any telemetry. 13 | */ 14 | package sdk 15 | -------------------------------------------------------------------------------- /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/github.com/docker/docker/api/types/container/top_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 | // TopResponse ContainerTopResponse 7 | // 8 | // Container "top" response. 9 | // swagger:model TopResponse 10 | type TopResponse struct { 11 | 12 | // Each process running in the container, where each process 13 | // is an array of values corresponding to the titles. 14 | Processes [][]string `json:"Processes"` 15 | 16 | // The ps column titles 17 | Titles []string `json:"Titles"` 18 | } 19 | -------------------------------------------------------------------------------- /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 | resp, err := cli.post(ctx, "/swarm/init", nil, req, nil) 13 | defer ensureReaderClosed(resp) 14 | if err != nil { 15 | return "", err 16 | } 17 | 18 | var response string 19 | err = json.NewDecoder(resp.Body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /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/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/api/types/filters/errors.go: -------------------------------------------------------------------------------- 1 | package filters 2 | 3 | import "fmt" 4 | 5 | // invalidFilter indicates that the provided filter or its value is invalid 6 | type invalidFilter struct { 7 | Filter string 8 | Value []string 9 | } 10 | 11 | func (e invalidFilter) Error() string { 12 | msg := "invalid filter" 13 | if e.Filter != "" { 14 | msg += " '" + e.Filter 15 | if e.Value != nil { 16 | msg = fmt.Sprintf("%s=%s", msg, e.Value) 17 | } 18 | msg += "'" 19 | } 20 | return msg 21 | } 22 | 23 | // InvalidParameter marks this error as ErrInvalidParameter 24 | func (e invalidFilter) InvalidParameter() {} 25 | -------------------------------------------------------------------------------- /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/sergi/go-diff/diffmatchpatch/mathutil.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2016 The go-diff authors. All rights reserved. 2 | // https://github.com/sergi/go-diff 3 | // See the included LICENSE file for license details. 4 | // 5 | // go-diff is a Go implementation of Google's Diff, Match, and Patch library 6 | // Original library is Copyright (c) 2006 Google Inc. 7 | // http://code.google.com/p/google-diff-match-patch/ 8 | 9 | package diffmatchpatch 10 | 11 | func min(x, y int) int { 12 | if x < y { 13 | return x 14 | } 15 | return y 16 | } 17 | 18 | func max(x, y int) int { 19 | if x > y { 20 | return x 21 | } 22 | return y 23 | } 24 | -------------------------------------------------------------------------------- /cli/share_create.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "github.com/bitrise-io/bitrise/v2/tools" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | func create(c *cli.Context) error { 9 | logCommandParameters(c) 10 | 11 | // Input validation 12 | tag := c.String(TagKey) 13 | if tag == "" { 14 | failf("No step tag specified") 15 | } 16 | 17 | gitURI := c.String(GitKey) 18 | if gitURI == "" { 19 | failf("No step url specified") 20 | } 21 | 22 | stepID := c.String(StepIDKey) 23 | 24 | if err := tools.StepmanShareCreate(tag, gitURI, stepID); err != nil { 25 | failf("Bitrise share create failed, error: %s", err) 26 | } 27 | 28 | return nil 29 | } 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/golang.org/x/tools/internal/versions/types.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 | package versions 6 | 7 | import ( 8 | "go/types" 9 | ) 10 | 11 | // GoVersion returns the Go version of the type package. 12 | // It returns zero if no version can be determined. 13 | func GoVersion(pkg *types.Package) string { 14 | // TODO(taking): x/tools can call GoVersion() [from 1.21] after 1.25. 15 | if pkg, ok := any(pkg).(interface{ GoVersion() string }); ok { 16 | return pkg.GoVersion() 17 | } 18 | return "" 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/go-utils/command/git/git.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/bitrise-io/go-utils/command" 7 | ) 8 | 9 | // Git represents a Git project. 10 | type Git struct { 11 | dir string 12 | } 13 | 14 | // New creates a new git project. 15 | func New(dir string) (Git, error) { 16 | if err := os.MkdirAll(dir, 0755); err != nil { 17 | return Git{}, err 18 | } 19 | return Git{dir: dir}, nil 20 | } 21 | 22 | func (g *Git) command(args ...string) *command.Model { 23 | cmd := command.New("git", args...) 24 | cmd.SetDir(g.dir) 25 | cmd.SetEnvs(append(os.Environ(), "GIT_ASKPASS=echo")...) 26 | return cmd 27 | } 28 | -------------------------------------------------------------------------------- /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 | containerID, err := trimID("container", containerID) 11 | if err != nil { 12 | return err 13 | } 14 | 15 | query := url.Values{} 16 | query.Set("name", newContainerName) 17 | resp, err := cli.post(ctx, "/containers/"+containerID+"/rename", query, nil, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Each line is a file pattern followed by one or more owners. 2 | # More on CODEOWNERS files: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners 3 | 4 | # Default owner 5 | * @hashicorp/team-ip-compliance @hashicorp/go-retryablehttp-maintainers 6 | 7 | # Add override rules below. Each line is a file/folder pattern followed by one or more owners. 8 | # Being an owner means those groups or individuals will be added as reviewers to PRs affecting 9 | # those areas of the code. 10 | # Examples: 11 | # /docs/ @docs-team 12 | # *.js @js-team 13 | # *.go @go-team 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | handle := windows.Handle(v.Fd()) 16 | var mode uint32 17 | if err := windows.GetConsoleMode(handle, &mode); err != nil { 18 | return false 19 | } 20 | mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 21 | if err := windows.SetConsoleMode(handle, mode); err != nil { 22 | return false 23 | } 24 | return true 25 | } 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /integrationtests/environment/secret_keys_sharing_test.go: -------------------------------------------------------------------------------- 1 | //go:build linux_and_mac 2 | // +build linux_and_mac 3 | 4 | package environment 5 | 6 | import ( 7 | "testing" 8 | 9 | "github.com/bitrise-io/bitrise/v2/integrationtests/internal/testhelpers" 10 | "github.com/bitrise-io/go-utils/command" 11 | "github.com/stretchr/testify/require" 12 | ) 13 | 14 | func TestSecretSharing(t *testing.T) { 15 | cmd := command.New(testhelpers.BinPath(), "run", "secret-sharing", "--config", "secret_keys_sharing_test_bitrise.yml", "--inventory", "secret_keys_sharing_test_secrets.yml") 16 | out, err := cmd.RunAndReturnTrimmedCombinedOutput() 17 | require.NoError(t, err, out) 18 | } -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.gitignore: -------------------------------------------------------------------------------- 1 | #### joe made this: http://goel.io/joe 2 | 3 | #### go #### 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 17 | .glide/ 18 | 19 | #### vim #### 20 | # Swap 21 | [._]*.s[a-v][a-z] 22 | [._]*.sw[a-p] 23 | [._]s[a-v][a-z] 24 | [._]sw[a-p] 25 | 26 | # Session 27 | Session.vim 28 | 29 | # Temporary 30 | .netrwhist 31 | *~ 32 | # Auto-generated tag files 33 | tags 34 | -------------------------------------------------------------------------------- /vendor/github.com/skeema/knownhosts/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2024 Skeema LLC and the Skeema Knownhosts authors 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/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.59.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 | -------------------------------------------------------------------------------- /configs/stack.go: -------------------------------------------------------------------------------- 1 | package configs 2 | 3 | import ( 4 | "os" 5 | "strings" 6 | ) 7 | 8 | // IsEdgeStack checks if the current stack is an edge stack based on environment variables. If we run outside of a Bitrise CI env, it also returns false. 9 | func IsEdgeStack() bool { 10 | if stackStatus, ok := os.LookupEnv("BITRISEIO_STACK_STATUS"); ok && strings.Contains(stackStatus, "edge") { 11 | return true 12 | } 13 | // TODO: legacy, can be removed once the $BITRISEIO_STACK_STATUS env is rolled out to every maintained environment 14 | if stack, ok := os.LookupEnv("BITRISEIO_STACK_ID"); ok && strings.Contains(stack, "edge") { 15 | return true 16 | } 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /integrationtests/environment/envstore_test.go: -------------------------------------------------------------------------------- 1 | //go:build linux_and_mac 2 | // +build linux_and_mac 3 | 4 | package environment 5 | 6 | import ( 7 | "testing" 8 | 9 | "github.com/bitrise-io/bitrise/v2/integrationtests/internal/testhelpers" 10 | "github.com/bitrise-io/go-utils/command" 11 | "github.com/stretchr/testify/require" 12 | ) 13 | 14 | func Test_EnvstoreTest(t *testing.T) { 15 | configPth := "envstore_test_bitrise.yml" 16 | 17 | t.Log("exit_code_test_fail") 18 | { 19 | cmd := command.New(testhelpers.BinPath(), "run", "envstore_test", "--config", configPth) 20 | out, err := cmd.RunAndReturnTrimmedCombinedOutput() 21 | require.NoError(t, err, out) 22 | } 23 | } -------------------------------------------------------------------------------- /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 | nodeID, err := trimID("node", nodeID) 13 | if err != nil { 14 | return err 15 | } 16 | 17 | query := url.Values{} 18 | if options.Force { 19 | query.Set("force", "1") 20 | } 21 | 22 | resp, err := cli.delete(ctx, "/nodes/"+nodeID, query, nil) 23 | defer ensureReaderClosed(resp) 24 | return err 25 | } 26 | -------------------------------------------------------------------------------- /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 | nodeID, err := trimID("node", nodeID) 13 | if err != nil { 14 | return err 15 | } 16 | 17 | query := url.Values{} 18 | query.Set("version", version.String()) 19 | resp, err := cli.post(ctx, "/nodes/"+nodeID+"/update", query, node, nil) 20 | ensureReaderClosed(resp) 21 | return err 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/sort.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import "unicode" 4 | 5 | // lexicographicLess compares strings alphabetically considering case. 6 | func lexicographicLess(i, j string) bool { 7 | iRunes := []rune(i) 8 | jRunes := []rune(j) 9 | 10 | lenShared := len(iRunes) 11 | if lenShared > len(jRunes) { 12 | lenShared = len(jRunes) 13 | } 14 | 15 | for index := 0; index < lenShared; index++ { 16 | ir := iRunes[index] 17 | jr := jRunes[index] 18 | 19 | if lir, ljr := unicode.ToLower(ir), unicode.ToLower(jr); lir != ljr { 20 | return lir < ljr 21 | } 22 | 23 | if ir != jr { 24 | return ir < jr 25 | } 26 | } 27 | 28 | return i < j 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/README.md: -------------------------------------------------------------------------------- 1 | # Go terminal/console support 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/golang.org/x/term.svg)](https://pkg.go.dev/golang.org/x/term) 4 | 5 | This repository provides Go terminal and console support packages. 6 | 7 | ## Report Issues / Send Patches 8 | 9 | This repository uses Gerrit for code changes. To learn how to submit changes to 10 | this repository, see https://go.dev/doc/contribute. 11 | 12 | The git repository is https://go.googlesource.com/term. 13 | 14 | The main issue tracker for the term repository is located at 15 | https://go.dev/issues. Prefix your issue with "x/term:" in the 16 | subject line, so it is easy to find. 17 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | linters: 3 | enable: 4 | - revive 5 | - unparam 6 | settings: 7 | revive: 8 | rules: 9 | - name: empty-block 10 | disabled: true 11 | exclusions: 12 | generated: lax 13 | presets: 14 | - comments 15 | - common-false-positives 16 | - legacy 17 | - std-error-handling 18 | rules: 19 | - linters: 20 | - staticcheck 21 | text: QF1003 # https://staticcheck.dev/docs/checks#QF1003 22 | paths: 23 | - examples$ 24 | formatters: 25 | exclusions: 26 | generated: lax 27 | paths: 28 | - third_party$ 29 | - builtin$ 30 | - examples$ 31 | -------------------------------------------------------------------------------- /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 | name, err := trimID("plugin", name) 13 | if err != nil { 14 | return err 15 | } 16 | query := url.Values{} 17 | if options.Force { 18 | query.Set("force", "1") 19 | } 20 | resp, err := cli.post(ctx, "/plugins/"+name+"/disable", query, nil, nil) 21 | ensureReaderClosed(resp) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /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 | name, err := trimID("plugin", name) 13 | if err != nil { 14 | return err 15 | } 16 | 17 | query := url.Values{} 18 | if options.Force { 19 | query.Set("force", "1") 20 | } 21 | 22 | resp, err := cli.delete(ctx, "/plugins/"+name, query, nil) 23 | defer ensureReaderClosed(resp) 24 | return err 25 | } 26 | -------------------------------------------------------------------------------- /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 | resp, err := cli.post(ctx, "/volumes/create", nil, options, nil) 13 | defer ensureReaderClosed(resp) 14 | if err != nil { 15 | return volume.Volume{}, err 16 | } 17 | 18 | var vol volume.Volume 19 | err = json.NewDecoder(resp.Body).Decode(&vol) 20 | return vol, err 21 | } 22 | -------------------------------------------------------------------------------- /stepruncmd/hangdetector/ticker.go: -------------------------------------------------------------------------------- 1 | package hangdetector 2 | 3 | import "time" 4 | 5 | // Ticker helps with mocking time.Ticker by hiding exported struct fields 6 | type Ticker interface { 7 | C() <-chan time.Time 8 | Stop() 9 | } 10 | 11 | type ticker struct { 12 | wrappedTicker *time.Ticker 13 | } 14 | 15 | func newTicker(d time.Duration) Ticker { 16 | return &ticker{ 17 | wrappedTicker: time.NewTicker(d), 18 | } 19 | } 20 | 21 | // C returns the underlying ticker channel 22 | func (t *ticker) C() <-chan time.Time { 23 | return t.wrappedTicker.C 24 | } 25 | 26 | // Stop stops the ticker (does not close channel) 27 | func (t *ticker) Stop() { 28 | t.wrappedTicker.Stop() 29 | } 30 | -------------------------------------------------------------------------------- /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, containerID string, options checkpoint.CreateOptions) error { 11 | containerID, err := trimID("container", containerID) 12 | if err != nil { 13 | return err 14 | } 15 | 16 | resp, err := cli.post(ctx, "/containers/"+containerID+"/checkpoints", nil, options, nil) 17 | ensureReaderClosed(resp) 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /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/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 | name, err := trimID("plugin", name) 14 | if err != nil { 15 | return err 16 | } 17 | query := url.Values{} 18 | query.Set("timeout", strconv.Itoa(options.Timeout)) 19 | 20 | resp, err := cli.post(ctx, "/plugins/"+name+"/enable", query, nil, nil) 21 | ensureReaderClosed(resp) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/kevinburke/ssh_config/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changes 2 | 3 | ## Version 1.2 4 | 5 | Previously, if a Host declaration or a value had trailing whitespace, that 6 | whitespace would have been included as part of the value. This led to unexpected 7 | consequences. For example: 8 | 9 | ``` 10 | Host example # A comment 11 | HostName example.com # Another comment 12 | ``` 13 | 14 | Prior to version 1.2, the value for Host would have been "example " and the 15 | value for HostName would have been "example.com ". Both of these are 16 | unintuitive. 17 | 18 | Instead, we strip the trailing whitespace in the configuration, which leads to 19 | more intuitive behavior. 20 | -------------------------------------------------------------------------------- /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/docker/docker/api/types/container/port.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 | // 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/go-git/go-billy/v5/osfs/os_js.go: -------------------------------------------------------------------------------- 1 | //go:build js 2 | // +build js 3 | 4 | package osfs 5 | 6 | import ( 7 | "github.com/go-git/go-billy/v5" 8 | "github.com/go-git/go-billy/v5/helper/chroot" 9 | "github.com/go-git/go-billy/v5/memfs" 10 | ) 11 | 12 | // globalMemFs is the global memory fs 13 | var globalMemFs = memfs.New() 14 | 15 | // Default Filesystem representing the root of in-memory filesystem for a 16 | // js/wasm environment. 17 | var Default = memfs.New() 18 | 19 | // New returns a new OS filesystem. 20 | func New(baseDir string, _ ...Option) billy.Filesystem { 21 | return chroot.New(Default, Default.Join("/", baseDir)) 22 | } 23 | 24 | type options struct { 25 | } 26 | -------------------------------------------------------------------------------- /toolprovider/asdf/activate.go: -------------------------------------------------------------------------------- 1 | package asdf 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | 7 | "github.com/bitrise-io/bitrise/v2/toolprovider/provider" 8 | ) 9 | 10 | func (a *AsdfToolProvider) ActivateEnv(result provider.ToolInstallResult) (provider.EnvironmentActivation, error) { 11 | envKey := fmt.Sprint("ASDF_", strings.ToUpper(string(result.ToolName)), "_VERSION") 12 | return provider.EnvironmentActivation{ 13 | ContributedEnvVars: map[string]string{ 14 | envKey: result.ConcreteVersion, 15 | }, 16 | // Only required path is the shims dir, but we rely on the system-wide asdf install anyway 17 | // (see Bootstrap() for details) 18 | ContributedPaths: []string{}, 19 | }, nil 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/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/go-git/gcfg/types/bool.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // BoolValues defines the name and value mappings for ParseBool. 4 | var BoolValues = map[string]interface{}{ 5 | "true": true, "yes": true, "on": true, "1": true, 6 | "false": false, "no": false, "off": false, "0": false, 7 | } 8 | 9 | var boolParser = func() *EnumParser { 10 | ep := &EnumParser{} 11 | ep.AddVals(BoolValues) 12 | return ep 13 | }() 14 | 15 | // ParseBool parses bool values according to the definitions in BoolValues. 16 | // Parsing is case-insensitive. 17 | func ParseBool(s string) (bool, error) { 18 | v, err := boolParser.Parse(s) 19 | if err != nil { 20 | return false, err 21 | } 22 | return v.(bool), nil 23 | } 24 | -------------------------------------------------------------------------------- /integrationtests/toolprovider/toolprovider_test_workflow_chain_bitrise.yml: -------------------------------------------------------------------------------- 1 | format_version: "17" 2 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git 3 | 4 | workflows: 5 | setup_node: 6 | # We define the tool in this workflow that gets chained in other workflows 7 | tools: 8 | nodejs: 22:latest 9 | 10 | toolprovider_test: 11 | before_run: 12 | # We chain the setup_node workflow to get the tool activated, it should has a "side-effect" on this workflow's environment too 13 | - setup_node 14 | steps: 15 | - script@1: 16 | title: Test activated tool 17 | inputs: 18 | - content: set -ex; node --version | grep -q "22" 19 | -------------------------------------------------------------------------------- /integrationtests/workflow/async_step_test.go: -------------------------------------------------------------------------------- 1 | //go:build linux_and_mac 2 | // +build linux_and_mac 3 | 4 | package workflow 5 | 6 | import ( 7 | "testing" 8 | 9 | "github.com/bitrise-io/bitrise/v2/integrationtests/internal/testhelpers" 10 | "github.com/bitrise-io/go-utils/command" 11 | "github.com/stretchr/testify/require" 12 | ) 13 | 14 | func Test_AsyncStep(t *testing.T) { 15 | configPth := "async_step_test_bitrise.yml" 16 | 17 | aTestWFID := "asynctest" 18 | { 19 | t.Log(aTestWFID) 20 | { 21 | cmd := command.New(testhelpers.BinPath(), "run", aTestWFID, "--config", configPth) 22 | out, err := cmd.RunAndReturnTrimmedCombinedOutput() 23 | require.NoError(t, err, out) 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_unsupported.go: -------------------------------------------------------------------------------- 1 | package packet 2 | 3 | import ( 4 | "io" 5 | 6 | "github.com/ProtonMail/go-crypto/openpgp/errors" 7 | ) 8 | 9 | // UnsupportedPackage represents a OpenPGP packet with a known packet type 10 | // but with unsupported content. 11 | type UnsupportedPacket struct { 12 | IncompletePacket Packet 13 | Error errors.UnsupportedError 14 | } 15 | 16 | // Implements the Packet interface 17 | func (up *UnsupportedPacket) parse(read io.Reader) error { 18 | err := up.IncompletePacket.parse(read) 19 | if castedErr, ok := err.(errors.UnsupportedError); ok { 20 | up.Error = castedErr 21 | return nil 22 | } 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /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 | name, err := trimID("plugin", name) 14 | if err != nil { 15 | return nil, err 16 | } 17 | resp, err := cli.post(ctx, "/plugins/"+name+"/push", nil, nil, http.Header{ 18 | registry.AuthHeader: {registryAuth}, 19 | }) 20 | if err != nil { 21 | return nil, err 22 | } 23 | return resp.Body, nil 24 | } 25 | -------------------------------------------------------------------------------- /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 | resp, err := cli.get(ctx, "/swarm/unlockkey", nil, nil) 13 | defer ensureReaderClosed(resp) 14 | if err != nil { 15 | return types.SwarmUnlockKeyResponse{}, err 16 | } 17 | 18 | var response types.SwarmUnlockKeyResponse 19 | err = json.NewDecoder(resp.Body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/pjbgf/sha1cd/Dockerfile.arm: -------------------------------------------------------------------------------- 1 | FROM golang:1.20@sha256:2edf6aab2d57644f3fe7407132a0d1770846867465a39c2083770cf62734b05d 2 | 3 | ENV GOOS=linux 4 | ENV GOARCH=arm 5 | ENV CGO_ENABLED=1 6 | ENV CC=arm-linux-gnueabihf-gcc 7 | ENV PATH="/go/bin/${GOOS}_${GOARCH}:${PATH}" 8 | ENV PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig 9 | 10 | RUN dpkg --add-architecture armhf \ 11 | && apt update \ 12 | && apt install -y --no-install-recommends \ 13 | upx \ 14 | gcc-arm-linux-gnueabihf \ 15 | libc6-dev-armhf-cross \ 16 | pkg-config \ 17 | && rm -rf /var/lib/apt/lists/* 18 | 19 | COPY . /src/workdir 20 | 21 | WORKDIR /src/workdir 22 | 23 | RUN go build ./... 24 | -------------------------------------------------------------------------------- /cli/envman.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/bitrise-io/go-utils/command" 7 | "github.com/urfave/cli" 8 | ) 9 | 10 | var envmanCommand = cli.Command{ 11 | Name: "envman", 12 | Usage: "Runs an envman command.", 13 | SkipFlagParsing: true, 14 | Action: func(c *cli.Context) error { 15 | logCommandParameters(c) 16 | 17 | if err := runCommandWith("envman", c); err != nil { 18 | failf("Command failed, error: %s", err) 19 | } 20 | return nil 21 | }, 22 | } 23 | 24 | func runCommandWith(toolName string, c *cli.Context) error { 25 | args := c.Args() 26 | cmd := command.NewWithStandardOuts(toolName, args...).SetStdin(os.Stdin) 27 | return cmd.Run() 28 | } 29 | -------------------------------------------------------------------------------- /integrationtests/workflow/test_deploy_structure_check_test.go: -------------------------------------------------------------------------------- 1 | //go:build linux_and_mac 2 | // +build linux_and_mac 3 | 4 | package workflow 5 | 6 | import ( 7 | "testing" 8 | 9 | "github.com/bitrise-io/bitrise/v2/integrationtests/internal/testhelpers" 10 | "github.com/bitrise-io/go-utils/command" 11 | ) 12 | 13 | func Test_DeployDirStructure(t *testing.T) { 14 | t.Log("check test deploy dir structure") 15 | { 16 | configPth := "test_deploy_structure_check.yml" 17 | 18 | cmd := command.New(testhelpers.BinPath(), "run", "test-deploy-dir-structure-check", "--config", configPth) 19 | out, err := cmd.RunAndReturnTrimmedCombinedOutput() 20 | if err != nil { 21 | t.Fatal(err, out) 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/go-utils/log/json_logger.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "os" 7 | ) 8 | 9 | // JSONLoger ... 10 | type JSONLoger struct { 11 | writer io.Writer 12 | } 13 | 14 | // NewJSONLoger ... 15 | func NewJSONLoger(writer io.Writer) *JSONLoger { 16 | return &JSONLoger{ 17 | writer: writer, 18 | } 19 | } 20 | 21 | // NewDefaultJSONLoger ... 22 | func NewDefaultJSONLoger() JSONLoger { 23 | return JSONLoger{ 24 | writer: os.Stdout, 25 | } 26 | } 27 | 28 | // Print ... 29 | func (l JSONLoger) Print(f Formatable) { 30 | if _, err := fmt.Fprint(l.writer, f.JSON()); err != nil { 31 | fmt.Printf("failed to print message: %s, error: %s\n", f.JSON(), err) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /integrationtests/steps/step_template/README.md: -------------------------------------------------------------------------------- 1 | # My Awesome Step 2 | 3 | My Awesome Step is a solid starting code base for 4 | a new Step. 5 | 6 | 7 | ## How to use this Step 8 | 9 | Can be run directly with the [bitrise CLI](https://github.com/bitrise-io/bitrise), 10 | just `git clone` this repository, `cd` into it's folder in your Terminal/Command Line 11 | and call `bitrise run test`. 12 | 13 | *Check the `bitrise.yml` file for required inputs which have to be 14 | added to your `.bitrise.secrets.yml` file!* 15 | 16 | 17 | ## Share your own Step 18 | 19 | You can share your Step or step version with the [bitrise CLI](https://github.com/bitrise-io/bitrise). Just run `bitrise share` and follow the guide it prints. 20 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/go-utils/log/raw_logger.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | "os" 7 | ) 8 | 9 | // RawLogger ... 10 | type RawLogger struct { 11 | writer io.Writer 12 | } 13 | 14 | // NewRawLogger ... 15 | func NewRawLogger(writer io.Writer) *RawLogger { 16 | return &RawLogger{ 17 | writer: writer, 18 | } 19 | } 20 | 21 | // NewDefaultRawLogger ... 22 | func NewDefaultRawLogger() RawLogger { 23 | return RawLogger{ 24 | writer: os.Stdout, 25 | } 26 | } 27 | 28 | // Print ... 29 | func (l RawLogger) Print(f Formatable) { 30 | if _, err := fmt.Fprintln(l.writer, f.String()); err != nil { 31 | fmt.Printf("failed to print message: %s, error: %s\n", f.String(), err) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/bitrise-io/stepman/cli/help.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import "github.com/urfave/cli" 4 | 5 | func initAppHelpTemplate() { 6 | cli.AppHelpTemplate = ` 7 | NAME: {{.Name}} - {{.Usage}} 8 | 9 | USAGE: {{.Name}} {{if .Flags}}[OPTIONS] {{end}}COMMAND [arg...] 10 | 11 | VERSION: {{.Version}}{{if or .Author .Email}} 12 | 13 | AUTHOR:{{if .Author}} 14 | {{.Author}}{{if .Email}} - <{{.Email}}>{{end}}{{else}} 15 | {{.Email}}{{end}}{{end}} 16 | {{if .Flags}} 17 | GLOBAL OPTIONS: 18 | {{range .Flags}}{{.}} 19 | {{end}}{{end}} 20 | COMMANDS: 21 | {{range .Commands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}} 22 | {{end}} 23 | COMMAND HELP: {{.Name}} COMMAND --help/-h 24 | 25 | ` 26 | } 27 | -------------------------------------------------------------------------------- /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 | containerID, err := trimID("container", containerID) 11 | if err != nil { 12 | return err 13 | } 14 | 15 | query := url.Values{} 16 | if signal != "" { 17 | query.Set("signal", signal) 18 | } 19 | 20 | resp, err := cli.post(ctx, "/containers/"+containerID+"/kill", query, nil, nil) 21 | ensureReaderClosed(resp) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-git/go-billy/v5/osfs/os_wasip1.go: -------------------------------------------------------------------------------- 1 | //go:build wasip1 2 | // +build wasip1 3 | 4 | package osfs 5 | 6 | import ( 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | func (f *file) Lock() error { 12 | f.m.Lock() 13 | defer f.m.Unlock() 14 | return nil 15 | } 16 | 17 | func (f *file) Unlock() error { 18 | f.m.Lock() 19 | defer f.m.Unlock() 20 | return nil 21 | } 22 | 23 | func rename(from, to string) error { 24 | return os.Rename(from, to) 25 | } 26 | 27 | // umask sets umask to a new value, and returns a func which allows the 28 | // caller to reset it back to what it was originally. 29 | func umask(new int) func() { 30 | old := syscall.Umask(new) 31 | return func() { 32 | syscall.Umask(old) 33 | } 34 | } 35 | --------------------------------------------------------------------------------