-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify version number in platform.txt when generating release package #1339
Comments
you can add a call like this: ver=`git describe --tags --always`
echo esp8266-$ver > version.txt (this is bash not python) to tools/get.py for the release build here: |
Would this be a way to do it for everyone? ps. i've not touched python, ever... in fact i tried once and broke everything... |
Further discoveries. This file should actually contain the arduino version so in this case |
The core is not bound to a particular version of the IDE. It would be a bit On Sat, Jan 2, 2016, 12:45 sticilface [email protected] wrote:
|
@igrr where I can get valid version? What is it? https://github.com/esp8266/Arduino/blob/master/platform.txt#L9 |
We can generate version.txt inside the released archive automatically, if it helps. Alternatively, you can parse the release archive name (it looks like |
I see that you have this info in You can close this issue. |
Ah, okay, then we need to make sure the version in platform.txt matches the real version. |
@igrr we have interesting issue platformio/platformio-core#479 where we will propose different vendors to create own development platform compatible with PlatformIO. In this case, this platform will depend on the different pre-built packages and will contain own build scripts. Ideally, will be good to have some manifest file per package. Package is generic meaning. JS developers mean under it node/npm based package, Python devs mean under it PyPi package and etc. How about to place this info to the repo? {
"name": "framework-arduino-esp8266",
"description": "ESP8266 core for Arduino",
"repository": {
"type": "git",
"url": "https://github.com/esp8266/Arduino.git"
},
"version": "2.1.0",
"license": "GPL v2.0",
"authors": [
{
"name": "Ivan Grokhotkov",
"email": "[email protected]"
},
{
"name": "Other Author",
"email": "[email protected]"
}
]
} You correct any fields. This will allow to have independent MANIFEST for the different IDE, build systems and etc. Comments are welcome. |
Does this file have to be in the repository, or just in the released zip package? I'm not really familiar with PlatformIO internals. Will it really use this git URL provided in manifest, or will it use a released zip package? Released package has a number of differences from the contents of git repository. |
I propose to place it directly in the repository. This file will not have any relation to PlatformIO. It can be used by other build system, IDEs and etc.
Hm... I didn't know. How do our users use the latest ESP8266 core using |
The difference is in the way the package is installed. Regarding the package json — which version should we place into the On Mon, Feb 29, 2016, 14:18 Ivan Kravets [email protected] wrote:
|
For what it is worth, I have the repo git cloned and i symlink it into the Arduino Hardware folder. ideally for me i would like the same thing with Platformio, as I'm always testing different changes to the IDE, working with different branches, testing things etc. I've actually gone back to the IDE, as platformio seemed to need special linkers, and when they change it broke things.. my fault for being on the bleeding edge. But thats my use case. I don't install via package managers, as i rely on git too much for switching branches of everything! |
I've got you. That doesn't have relation to PlatformIO because we use raw source files and have own build system. The cloned repo is Ok for us.
It depends on your workflow. We use https://github.com/nvie/gitflow for @platformio. The releases are sticked in If you decide to use SINGLE |
Please open an issue for that. We will think on it how to use original LD scripts from the repo. It is related to the different build systems. PlatformIO has own build system and the final object files have others location and names P.S: I hope we will not have significantly difference when update to 2.1.0 release. See platformio/platformio-core#544 . After this you will have ability to use |
Resolved in #3321 |
A version.txt file is required to keep platformio happy.
When it is placed in the project root the entire esp8266 directory can be symlinked into platformio and it works with no modification.
I Can just add a version.txt file, but it might be nice to have one generated that matches the project version or git.. if this is possible? Can just contain a 1 if not..
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: