Comments (14)
tar ball can't correct identify source version. github don't provide customer script to generate it. which is known issue
from mfgtools.
Why not define a version string in CMakeLists.txt, e.g. using the project()
command, and use this version string if no git clone is used? This why, both the source tarball and the git clone will compile.
from mfgtools.
CMakeList.txt can't sync with git tag and commit hash automatically.
github don't support external script to generate tarball.
from mfgtools.
Maybe I was not clear enough. I've pushed an example to my fork which does apply a version string even when building the source tarball: https://github.com/joerg-krause/mfgtools/tree/gitversion.
from mfgtools.
If version upgrade 1.2.128, I have to change CMakeList.txt (project(uuu VERSION 1.2.91)).
from mfgtools.
Yes. Is it a no-go?
from mfgtools.
Another solution would be to add a travis rule to automatically publish a release tarball when tagging a commit. Something like this (totally untested!):
jobs:
include:
- stage: deploy
if: tag IS present
script: skip
before_deploy:
- .ci/make_version.sh $TRAVIS_TAG
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: mfgtools-$TRAVIS_TAG.tar.gz
overwrite: true
skip_cleanup: true
on:
tags: true
from mfgtools.
but in release page https://github.com/NXPmicro/mfgtools/releases,
source tar ball is generate by github, I am not sure how to replace it with generated by travis-ci
from mfgtools.
You're right, you cannot overwrite the github source tarball, but you can create your own one and upload it. I've tested it on my fork: https://github.com/joerg-krause/mfgtools. In releases you can see the created tarball uuu_1.2.92.tar.gz
.
Note, I am not an expert in Travis. I've just re-used the code from some other project.
Note, this is just a test and I will remove the tarball later.
from mfgtools.
but Source code (zip) and Source code (tar.gz), which will cause confuse.
from mfgtools.
Maybe. However, the automatically generated source tarballs from github have some disadvantages:
- They can change at any point. The tarballs are generated and cached, once the cash is invalidated, a new tarball is generated by github. This new tarball will have a different checksum. This makes it difficult for package management systems as they rely on a valid checksum. An uploaded release tarball will not change (until you force it).
- They do not contain submodules.
from mfgtools.
but we can't prevent github to create it. So I don't prefer use tarball at all.
from mfgtools.
Note that the automatically generated source tarball does not even compile. In my opinion, that is confusing.
from mfgtools.
That's problem, we claim tarball is not supported before work out and good solution.
from mfgtools.
Related Issues (20)
- FB commands not running on IMX-28 HOT 6
- How to automate UUU to match both USB 2.0 and USB 3.0 port path HOT 5
- Fail Bulk(R):LIBUSB_ERROR_TIMEOUT(2.009s) HOT 2
- Issue programing multiple devices at the same time HOT 5
- Unexpected behavior with ucp HOT 2
- Problems with the uuu script for 6ull HOT 8
- Fail Bulk(W):LIBUSB_ERROR_TIMEOUT HOT 9
- "sudo uuu -v -b emmc ./imx-boot-sd.bin" stuck at 100%1:12>Okay (0.646s) on MX8MM HOT 5
- LIBUSB_ERROR_TIMEOUT and retry strategy HOT 3
- UBUNTU 20.04.6 LTS; IMX8MP; uuu: Fail HID(W):LIBUSB_ERROR_NO_DEVICE(0.003s) HOT 2
- FB:< with multi-line output script HOT 2
- libusb error while flashing u-boot for iMX6ULL NAND
- iMX8MP: SDPS LIBUSB_ERROR_TIMEOUT due to UUUBURNXXOEUZX7 tag HOT 8
- uuu hangs while trying to flash to a board that is connected HOT 1
- Segmentation fault in fastboot mode with imx6 board. HOT 13
- Device enters emergency mode, when flashed with -bmap
- iMX6UL Fail Bulk(W): LIBUSB_ERROR_TIMEOUT (-7) with big rootfs HOT 12
- Boot failure when flashing compressed .wic image HOT 2
- uuu issue not able to flash u-boot image HOT 2
- Improve speed of burning HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mfgtools.