Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !1570

Added details on unsupported flavors to flavor-related exceptions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/shybovycha/enhancement/detailed-exception-description-for-flavors into master Oct 09, 2017
  • Overview 35
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: shybovycha

This PR is aimed to provide more detailed feedback on why the build failed.

Currently, apple_bundle targets require the flavor to be provided. But if one is not provided, the error does not point to why the build really failed and what options to fix that failure are. For more details see the example below.

Before:

$ buck run //irrlicht-newton-game:bundle-osx1
Parsing buck files: finished in 2.3 sec (100%)
Creating action graph: finished in 0.7 sec (100%)
Building: finished in 1.1 sec
  Total time: 4.2 sec
BUILD FAILED: //irrlicht-newton-game:bundle-osx#dwarf-and-dsym,no-include-frameworks: Apple bundle requires an Apple platform, found 'default'

A common cause of this error is that the required SDK is missing.
Please check whether it's installed and retry.

After:

$ ../buck/bin/buck run //irrlicht-newton-game:bundle-osx
Parsing buck files: finished in 2.8 sec (100%)
Creating action graph: finished in 0.7 sec (100%)
Building: finished in 0.8 sec
  Total time: 4.4 sec
BUILD FAILED: //irrlicht-newton-game:bundle-osx#dwarf-and-dsym,no-include-frameworks: Apple bundle requires an Apple platform, found 'default'

A common cause of this error is that the required SDK is missing.
Please check whether it's installed and retry.
Original exception: "Apple C++ Platform" has no flavor "default"; available ones: appletvos11.0-arm64, appletvsimulator11.0-x86_64, iphoneos11.0-armv7, iphoneos11.0-arm64, iphonesimulator11.0-i386, iphonesimulator11.0-x86_64, macosx10.13-i386, macosx10.13-x86_64, watchos4.0-armv7k, watchsimulator4.0-i386, appletvos-arm64, appletvsimulator-x86_64, iphoneos-armv7, iphoneos-arm64, iphonesimulator-i386, iphonesimulator-x86_64, macosx-i386, macosx-x86_64, watchos-armv7k, watchsimulator-i386
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/shybovycha/enhancement/detailed-exception-description-for-flavors