versioning

SBT - Run Task to set a SettingKey

倖福魔咒の 提交于 2019-12-06 04:12:03
问题 So my general problem is that I want to set the version key based on the result of a task. However the version key is set before the task is run. From what I understand I can't change the value of a key once it is set so I can't change this within my task. What I want to do is run the task as a dependency to the publish task and change the value for version. I feel like there must be a way to do this, but I have no clues at the moment. Any help would be greatly appreciated. 回答1: The sbt

A good strategy for implementing a versioning system

邮差的信 提交于 2019-12-06 02:19:17
问题 I have been struggling with versioning software for a while now. I'm not talking about a naming convention, I'm talking about how to actually apply a version in a build system all the way through to a release. I generally use major.minor.maintenance-[release type] i.e. 1.0.2-rc1 The problem is managing the version number. I've tried many ways (sticking it in a build file, a properties file, a database, etc,etc) but I haven't found anything that really works well. The closest thing I came up

Importing git project into workspace without using egit

偶尔善良 提交于 2019-12-06 02:03:48
问题 I asked a question a relating to Egit a few weeks ago & it was suggested that I read pro git, which I have been referencing. I'd rather use git from the command line and wait for egit's stable release with the Eclipse Indigo release in June, because there are to many bugs and it tends to make my ide stall. So to try it out I copied my working directory to a new location created a git repo & init then added all the files in the working directory. My thought was I could control all the git

Object of type 'bytes' is not JSON serializable when upgrading my python environment

自古美人都是妖i 提交于 2019-12-06 01:48:22
问题 I have developed an application in Flask that worked. I try to upgrade my environment from version 2.7 to 3.6. When I am hitting an endpoint that is calling a form It generated the following error: Traceback (most recent call last): File "/Users/Melvyn/Documents/personnel/python/TheSwitchWebApp/venv/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__ return self.wsgi_app(environ, start_response) File "/Users/Melvyn/Documents/personnel/python/TheSwitchWebApp/venv/lib/python3.6

Versioning REST APIs and vendor specific content type

送分小仙女□ 提交于 2019-12-06 00:46:46
问题 I read a lot about versioning REST APIs, f.e. in this thread: Best practices for API versioning? Because of that I would like to use the HTTP-Accept-Header to indicate which version the client is asking for. But how can I apply this in my application? Which changes had therefore be made? How does the marshaller know, which version should be used? Do I have to register my type? What I know is that I have to change the content of the @Produces -Annotation @GET @Path("/locations") @Produces(

WCF client's and versioning

自作多情 提交于 2019-12-06 00:24:11
If I change the WCF, do I have to run some sort of update on all client computers that are accessing the service? (i.e. run svutils.exe and update all app.config's etc?) Read about data contact versioning: Data Contact Versioning: Forward-Compatible Data Contracts Best Practices: Data Contract Versioning Not unless the message changes and the change is required to use your service. If the signature of the WCF method does not change, then you will not need to update the clients. You can add new methods to the service if you need, instead of changing the signatures of existing methods. 来源: https

Is it possible to use Assembly.ReflectionOnlyLoad together with publisher policies / assembly versioning?

情到浓时终转凉″ 提交于 2019-12-05 17:51:48
My target: We are allowing to integrate our product with third party components (libraries) which are not installed as part of our product because of licensing. At the moment we want to load features related to third party components only if these components are installed on the client's machine. Current solution: I'm using Assembly.ReflectionOnlyLoad with providing full names of third party assemblies to validate installation of third party components before the application loads related features. This works for following scenarios: Exact versions of libraries are installed to GAC Exact

Versioning in a CDN

南楼画角 提交于 2019-12-05 17:39:27
Is there any way of achieving a similar versioning solution on a CDN ( not Cloudfront, Edgecast in this case) for js and css files as the rather neat one, combining a Rewrite rule and PHP, described in this thread ? I don't know of a way of making that PHP/mod-rewrite combination work on a CDN, change my versions often, and don't want to do the versioning manually. I use a cookieless, entirely separate domain to serve static content, so I have to specify the full url in the function. For convenience I'll set out the code from the other thread here. First, we use the following rewrite rule in

Pros and Cons of Web Services Versioning Strategies

强颜欢笑 提交于 2019-12-05 16:38:33
问题 Update 20100224 I really don't need some lame definitions from some vendor website. What I am looking for is practical implementation and challenges faced in the daily IT/business cycle for people who actually implement this stuff. More stuff follows: No retirement strategy has been created/adopted: Obviously one needs to be created. I am interested in how you create this strategy and sell it to management. What are all of the costs/benefits you look at? Do you do a BE analysis on customer

Automate AssemblyFileVersion Incrementation using GIT

我是研究僧i 提交于 2019-12-05 16:16:11
Ok I understand that this is probably not conventional, but that aside: I am using the AssemblyFileVersion as kind of my "Build Name" string. It is formated like this: ' File Version information for an assembly consists of the following four values: ' ' Year ' Month ' Day ' Commit Number for that day ' ' Build Name can either be alpha | beta | hotfix | release ' alpha - is a development buildname with rapid changing API ' beta - is a production build for our beta users ' hotfix - is a production version with a bug fix ' release - is a standard issue production version. <Assembly: