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

Running simple/common gradle tasks under earth_enterprise/rpms fails #1004

Closed
tst-rwildes opened this issue Sep 22, 2018 · 1 comment
Closed
Assignees

Comments

@tst-rwildes
Copy link
Collaborator

On a clean system (one that never did a scons stage_install simple commands like gradle clean or even gradle tasks fail to run with the following below error output. These commands should succeeded and to the correct thing without having to run scons stage_install or even a scons build or any scons command. This was somewhat of an issue prior to 5.2.4 but during the 5.2.4 release we inadvertently made this issue much worse via changes done for #987

Error output:

FAILURE: Build failed with an exception.

* Where:
Build file '/mnt/c/Users/rwildes/projects/geoplatform/earthenterprise/earth_enterprise/rpms/build.gradle' line: 100

* What went wrong:
A problem occurred evaluating root project 'rpms'.
>                 Runing `scons` to produce </tmp/fusion_os_install/gee_long_version.txt> failed!
                  Command: [/usr/bin/scons, release=1, /tmp/fusion_os_install/gee_long_version.txt]
                  Exit code: 2.
                  Error output:
                  scons: *** Do not know how to make File target `/tmp/fusion_os_install/gee_long_version.txt' (/tmp/fusion_os_install/gee_long_version.txt).  Stop.

                  Standard output:
                  scons: Reading SConscript files ...
  Checking for C library gtest... (cached) no
  Checking for C header file libpng12/png.h... (cached) yes
  scons: done reading SConscript files.
  scons: Building targets ...
  scons: building terminated because of errors.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
@tst-rwildes tst-rwildes self-assigned this Sep 22, 2018
tst-rwildes added a commit that referenced this issue Sep 28, 2018
…d it (#1005)

* don't read version file for tasks that don't need to read it

* added mustRunAfter to each of the packaging tasks and added visibility to the 'osPackage' task when 'gradle tasks' is run.
@tst-rwildes
Copy link
Collaborator Author

Closing as fix was merged.

tst-rwildes added a commit that referenced this issue Sep 28, 2018
Fixes #1004: don't read version file for tasks that don't need version info
husf-dsheremata added a commit to husf-dsheremata/earthenterprise that referenced this issue Jan 11, 2019
* 'master' of https://github.com/google/earthenterprise:
  google#997: Allowing alpha version tag on master branch to enable parallel development of current verison on release branch, and next release on master (google#1029)
  Fixes google#1004: don't read version file for tasks that don't need to read it (google#1005)
  google#788 Add flags for poi search, update documentation. (google#1010)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant