Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Add support for specifying DEVELOPER_DIR as environment variable and env attribute value. #80

Merged
merged 8 commits into from
Sep 21, 2021

Conversation

cgrindel
Copy link
Owner

@cgrindel cgrindel commented Sep 20, 2021

Related to #68.

  • Added env attribute to spm_repositories.
  • Added code to derive an env dict from the env attribute value and/or the DEVELOPER_DIR environment variable.
  • Added repository_utils.exec_spm_command() to support running SPM commands. This function handles adding xcrun to the command line, if it is being executed on macos.
  • Updated all SPM command executions to use the new utility, passing along the derived env.
  • Updated the Github actions workflow with two additional tests:
    • Change default to incompatible Xcode and then override it with DEVELOPER_DIR environment variable.
    • Change default to incompatible Xcode and then override it with env attribute specifying the DEVELOPER_DIR to use.

@cgrindel cgrindel marked this pull request as ready for review September 21, 2021 00:16
@cgrindel cgrindel self-assigned this Sep 21, 2021
@cgrindel cgrindel enabled auto-merge (squash) September 21, 2021 00:18
@cgrindel cgrindel mentioned this pull request Sep 21, 2021
@cgrindel cgrindel merged commit 8b446db into main Sep 21, 2021
@cgrindel cgrindel deleted the gh068_add_developer_dir_support branch September 21, 2021 00:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant